-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add [Symbol.toStringTag] property to all interfaces
Fixes #1641
- Loading branch information
Showing
8 changed files
with
5,071 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
///////////////////////////// | ||
/// AudioWorklet [Symbol.toStringTag] APIs | ||
///////////////////////////// | ||
|
||
interface AbortController { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface AudioWorkletProcessor { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface CompressionStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface DecompressionStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface Event { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface EventTarget { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface ReadableByteStreamController { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface ReadableStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface ReadableStreamBYOBReader { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface ReadableStreamBYOBRequest { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface ReadableStreamDefaultController { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface ReadableStreamDefaultReader { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface TextDecoder { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface TextDecoderStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface TextEncoder { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface TextEncoderStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface TransformStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface TransformStreamDefaultController { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface URL { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface URLSearchParams { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface WorkletGlobalScope { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface WritableStream { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface WritableStreamDefaultController { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface WritableStreamDefaultWriter { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} |
Oops, something went wrong.