diff options
Diffstat (limited to 'extensions/webidl/internal.d.ts')
-rw-r--r-- | extensions/webidl/internal.d.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/webidl/internal.d.ts b/extensions/webidl/internal.d.ts index 4d0f1ad45..9d151a6d1 100644 --- a/extensions/webidl/internal.d.ts +++ b/extensions/webidl/internal.d.ts @@ -321,6 +321,21 @@ declare namespace globalThis { * Configure prototype properties enumerability / writability / configurability. */ declare function configurePrototype(prototype: any); + + /** + * Get the WebIDL / ES type of a value. + */ + declare function type( + v: any, + ): + | "Null" + | "Undefined" + | "Boolean" + | "Number" + | "String" + | "Symbol" + | "BigInt" + | "Object"; } } } |