Skip to content

Commit fcd3acf

Browse files
jdufresnepetamoriken
authored andcommitted
Add [Symbol.toStringTag] property to all interfaces
Fixes microsoft#1641
1 parent 2939d4f commit fcd3acf

8 files changed

+5071
-7
lines changed
+219
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
/////////////////////////////
2+
/// AudioWorklet [Symbol.toStringTag] APIs
3+
/////////////////////////////
4+
5+
interface AbortController {
6+
/**
7+
* The well-known symbol @@toStringTag.
8+
*
9+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
10+
*/
11+
readonly [Symbol.toStringTag]: string;
12+
}
13+
14+
interface AudioWorkletProcessor {
15+
/**
16+
* The well-known symbol @@toStringTag.
17+
*
18+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
19+
*/
20+
readonly [Symbol.toStringTag]: string;
21+
}
22+
23+
interface CompressionStream {
24+
/**
25+
* The well-known symbol @@toStringTag.
26+
*
27+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
28+
*/
29+
readonly [Symbol.toStringTag]: string;
30+
}
31+
32+
interface DecompressionStream {
33+
/**
34+
* The well-known symbol @@toStringTag.
35+
*
36+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
37+
*/
38+
readonly [Symbol.toStringTag]: string;
39+
}
40+
41+
interface Event {
42+
/**
43+
* The well-known symbol @@toStringTag.
44+
*
45+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
46+
*/
47+
readonly [Symbol.toStringTag]: string;
48+
}
49+
50+
interface EventTarget {
51+
/**
52+
* The well-known symbol @@toStringTag.
53+
*
54+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
55+
*/
56+
readonly [Symbol.toStringTag]: string;
57+
}
58+
59+
interface ReadableByteStreamController {
60+
/**
61+
* The well-known symbol @@toStringTag.
62+
*
63+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
64+
*/
65+
readonly [Symbol.toStringTag]: string;
66+
}
67+
68+
interface ReadableStream {
69+
/**
70+
* The well-known symbol @@toStringTag.
71+
*
72+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
73+
*/
74+
readonly [Symbol.toStringTag]: string;
75+
}
76+
77+
interface ReadableStreamBYOBReader {
78+
/**
79+
* The well-known symbol @@toStringTag.
80+
*
81+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
82+
*/
83+
readonly [Symbol.toStringTag]: string;
84+
}
85+
86+
interface ReadableStreamBYOBRequest {
87+
/**
88+
* The well-known symbol @@toStringTag.
89+
*
90+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
91+
*/
92+
readonly [Symbol.toStringTag]: string;
93+
}
94+
95+
interface ReadableStreamDefaultController {
96+
/**
97+
* The well-known symbol @@toStringTag.
98+
*
99+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
100+
*/
101+
readonly [Symbol.toStringTag]: string;
102+
}
103+
104+
interface ReadableStreamDefaultReader {
105+
/**
106+
* The well-known symbol @@toStringTag.
107+
*
108+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
109+
*/
110+
readonly [Symbol.toStringTag]: string;
111+
}
112+
113+
interface TextDecoder {
114+
/**
115+
* The well-known symbol @@toStringTag.
116+
*
117+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
118+
*/
119+
readonly [Symbol.toStringTag]: string;
120+
}
121+
122+
interface TextDecoderStream {
123+
/**
124+
* The well-known symbol @@toStringTag.
125+
*
126+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
127+
*/
128+
readonly [Symbol.toStringTag]: string;
129+
}
130+
131+
interface TextEncoder {
132+
/**
133+
* The well-known symbol @@toStringTag.
134+
*
135+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
136+
*/
137+
readonly [Symbol.toStringTag]: string;
138+
}
139+
140+
interface TextEncoderStream {
141+
/**
142+
* The well-known symbol @@toStringTag.
143+
*
144+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
145+
*/
146+
readonly [Symbol.toStringTag]: string;
147+
}
148+
149+
interface TransformStream {
150+
/**
151+
* The well-known symbol @@toStringTag.
152+
*
153+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
154+
*/
155+
readonly [Symbol.toStringTag]: string;
156+
}
157+
158+
interface TransformStreamDefaultController {
159+
/**
160+
* The well-known symbol @@toStringTag.
161+
*
162+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
163+
*/
164+
readonly [Symbol.toStringTag]: string;
165+
}
166+
167+
interface URL {
168+
/**
169+
* The well-known symbol @@toStringTag.
170+
*
171+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
172+
*/
173+
readonly [Symbol.toStringTag]: string;
174+
}
175+
176+
interface URLSearchParams {
177+
/**
178+
* The well-known symbol @@toStringTag.
179+
*
180+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
181+
*/
182+
readonly [Symbol.toStringTag]: string;
183+
}
184+
185+
interface WorkletGlobalScope {
186+
/**
187+
* The well-known symbol @@toStringTag.
188+
*
189+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
190+
*/
191+
readonly [Symbol.toStringTag]: string;
192+
}
193+
194+
interface WritableStream {
195+
/**
196+
* The well-known symbol @@toStringTag.
197+
*
198+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
199+
*/
200+
readonly [Symbol.toStringTag]: string;
201+
}
202+
203+
interface WritableStreamDefaultController {
204+
/**
205+
* The well-known symbol @@toStringTag.
206+
*
207+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
208+
*/
209+
readonly [Symbol.toStringTag]: string;
210+
}
211+
212+
interface WritableStreamDefaultWriter {
213+
/**
214+
* The well-known symbol @@toStringTag.
215+
*
216+
* [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag)
217+
*/
218+
readonly [Symbol.toStringTag]: string;
219+
}

0 commit comments

Comments
 (0)