diff options
author | Luca Casonato <hello@lcas.dev> | 2021-06-21 19:53:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 19:53:52 +0200 |
commit | f9ff981daf6931a01e1516db0b5714e7a94f145b (patch) | |
tree | 677a6e3f12c86210cc635e68b9afc06c4cb1d2f9 /extensions/webidl/internal.d.ts | |
parent | a2f939b99c43c6344f109144d7b01c95294a6f8b (diff) |
feat: `MessageChannel` and `MessagePort` (#11051)
This commit introduces support for MessageChannel and MessagePort.
MessagePorts can be transfered across other MessagePorts.
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"; } } } |