diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-07-08 09:43:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 09:43:36 -0400 |
commit | 5fa58c92165e23386b8ed3c3079103997fe1bef9 (patch) | |
tree | d7efc34a11322d10f2749b5083cd84fa1b4a18d6 /extensions/console/internal.d.ts | |
parent | 5e092b19fe113bdecd36b4e0184c82f4b3343bca (diff) |
fix: inspecting prototypes of built-ins with custom inspect implementations should not throw (#11308)
Diffstat (limited to 'extensions/console/internal.d.ts')
-rw-r--r-- | extensions/console/internal.d.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/console/internal.d.ts b/extensions/console/internal.d.ts new file mode 100644 index 000000000..ef7834ba6 --- /dev/null +++ b/extensions/console/internal.d.ts @@ -0,0 +1,16 @@ +// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. + +/// <reference no-default-lib="true" /> +/// <reference lib="esnext" /> + +declare namespace globalThis { + declare namespace __bootstrap { + declare namespace console { + declare function createFilteredInspectProxy<TObject>(params: { + object: TObject; + keys: (keyof TObject)[]; + evaluate: boolean; + }): Record<string, unknown>; + } + } +} |