-
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
4,657 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,192 @@ | ||
///////////////////////////// | ||
/// 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 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 Global { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface Instance { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface Memory { | ||
/** | ||
* The well-known symbol @@toStringTag. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) | ||
*/ | ||
readonly [Symbol.toStringTag]: string; | ||
} | ||
|
||
interface Module { | ||
/** | ||
* 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 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 Table { | ||
/** | ||
* 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.