Skip to content

Commit

Permalink
Add [Symbol.toStringTag] property to all interfaces
Browse files Browse the repository at this point in the history
Fixes #1641
  • Loading branch information
jdufresne committed Mar 27, 2024
1 parent 6621974 commit e472db6
Show file tree
Hide file tree
Showing 8 changed files with 4,657 additions and 7 deletions.
192 changes: 192 additions & 0 deletions baselines/audioworklet.tostringtag.d.ts
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;
}
Loading

0 comments on commit e472db6

Please sign in to comment.