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 7a3b7a0
Show file tree
Hide file tree
Showing 8 changed files with 5,071 additions and 7 deletions.
219 changes: 219 additions & 0 deletions baselines/audioworklet.tostringtag.d.ts
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;
}
Loading

0 comments on commit 7a3b7a0

Please sign in to comment.