@stencil/core 4.38.3-dev.1762750959.bede52f → 4.38.3-dev.1762795767.192e568
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.decorators.d.ts +15 -13
- package/compiler/lib.dom.asynciterable.d.ts +6 -14
- package/compiler/lib.dom.d.ts +5094 -15927
- package/compiler/lib.dom.iterable.d.ts +111 -207
- package/compiler/lib.es2015.core.d.ts +9 -9
- package/compiler/lib.es2015.generator.d.ts +2 -2
- package/compiler/lib.es2015.iterable.d.ts +104 -214
- package/compiler/lib.es2015.symbol.wellknown.d.ts +11 -11
- package/compiler/lib.es2016.array.include.d.ts +9 -9
- package/compiler/lib.es2016.intl.d.ts +1 -1
- package/compiler/lib.es2017.d.ts +2 -3
- package/compiler/lib.es2017.object.d.ts +4 -4
- package/compiler/lib.es2017.sharedmemory.d.ts +15 -15
- package/compiler/lib.es2017.typedarrays.d.ts +9 -9
- package/compiler/lib.es2018.asyncgenerator.d.ts +2 -2
- package/compiler/lib.es2018.asynciterable.d.ts +6 -16
- package/compiler/lib.es2020.bigint.d.ts +62 -100
- package/compiler/lib.es2020.intl.d.ts +36 -36
- package/compiler/lib.es2020.sharedmemory.d.ts +11 -13
- package/compiler/lib.es2020.string.d.ts +1 -3
- package/compiler/lib.es2020.symbol.wellknown.d.ts +1 -5
- package/compiler/lib.es2021.intl.d.ts +17 -17
- package/compiler/lib.es2021.weakref.d.ts +0 -2
- package/compiler/lib.es2022.array.d.ts +11 -11
- package/compiler/lib.es2022.d.ts +2 -1
- package/compiler/lib.es2022.error.d.ts +0 -2
- package/compiler/lib.es2022.intl.d.ts +11 -39
- package/compiler/{lib.es2024.sharedmemory.d.ts → lib.es2022.sharedmemory.d.ts} +0 -29
- package/compiler/lib.es2023.array.d.ts +79 -79
- package/compiler/lib.es5.d.ts +305 -321
- package/compiler/lib.esnext.array.d.ts +1 -1
- package/compiler/lib.esnext.collection.d.ts +11 -1
- package/compiler/lib.esnext.d.ts +5 -6
- package/compiler/lib.esnext.disposable.d.ts +0 -8
- package/compiler/lib.esnext.promise.d.ts +12 -11
- package/compiler/lib.webworker.asynciterable.d.ts +6 -14
- package/compiler/lib.webworker.d.ts +1393 -5112
- package/compiler/lib.webworker.iterable.d.ts +61 -125
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +15142 -20586
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/screenshot/screenshot-fs.d.ts +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
- package/compiler/lib.es2017.arraybuffer.d.ts +0 -21
- package/compiler/lib.es2024.arraybuffer.d.ts +0 -65
- package/compiler/lib.es2024.collection.d.ts +0 -29
- package/compiler/lib.es2024.d.ts +0 -26
- package/compiler/lib.es2024.full.d.ts +0 -24
- package/compiler/lib.es2024.promise.d.ts +0 -35
- package/compiler/lib.esnext.error.d.ts +0 -24
- package/compiler/lib.esnext.float16.d.ts +0 -445
- package/compiler/lib.esnext.iterator.d.ts +0 -148
- package/compiler/lib.esnext.sharedmemory.d.ts +0 -25
- /package/compiler/{lib.es2024.object.d.ts → lib.esnext.object.d.ts} +0 -0
- /package/compiler/{lib.es2024.regexp.d.ts → lib.esnext.regexp.d.ts} +0 -0
- /package/compiler/{lib.es2024.string.d.ts → lib.esnext.string.d.ts} +0 -0
|
@@ -20,12 +20,13 @@ and limitations under the License.
|
|
|
20
20
|
/// Window Iterable APIs
|
|
21
21
|
/////////////////////////////
|
|
22
22
|
|
|
23
|
+
interface AbortSignal {
|
|
24
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
|
25
|
+
any(signals: Iterable<AbortSignal>): AbortSignal;
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
interface AudioParam {
|
|
24
|
-
/**
|
|
25
|
-
* The **`setValueCurveAtTime()`** method of the following a curve defined by a list of values.
|
|
26
|
-
*
|
|
27
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
|
|
28
|
-
*/
|
|
29
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
|
29
30
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -33,59 +34,47 @@ interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
interface BaseAudioContext {
|
|
36
|
-
/**
|
|
37
|
-
* The **`createIIRFilter()`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
|
|
38
|
-
*
|
|
39
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
|
|
40
|
-
*/
|
|
37
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
|
|
41
38
|
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
|
|
42
|
-
/**
|
|
43
|
-
* The `createPeriodicWave()` method of the BaseAudioContext interface is used to create a PeriodicWave.
|
|
44
|
-
*
|
|
45
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
|
|
46
|
-
*/
|
|
39
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
|
|
47
40
|
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
48
41
|
}
|
|
49
42
|
|
|
50
43
|
interface CSSKeyframesRule {
|
|
51
|
-
[Symbol.iterator]():
|
|
44
|
+
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
|
|
52
45
|
}
|
|
53
46
|
|
|
54
47
|
interface CSSNumericArray {
|
|
55
|
-
[Symbol.iterator]():
|
|
56
|
-
entries():
|
|
57
|
-
keys():
|
|
58
|
-
values():
|
|
48
|
+
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
|
49
|
+
entries(): IterableIterator<[number, CSSNumericValue]>;
|
|
50
|
+
keys(): IterableIterator<number>;
|
|
51
|
+
values(): IterableIterator<CSSNumericValue>;
|
|
59
52
|
}
|
|
60
53
|
|
|
61
54
|
interface CSSRuleList {
|
|
62
|
-
[Symbol.iterator]():
|
|
55
|
+
[Symbol.iterator](): IterableIterator<CSSRule>;
|
|
63
56
|
}
|
|
64
57
|
|
|
65
58
|
interface CSSStyleDeclaration {
|
|
66
|
-
[Symbol.iterator]():
|
|
59
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
67
60
|
}
|
|
68
61
|
|
|
69
62
|
interface CSSTransformValue {
|
|
70
|
-
[Symbol.iterator]():
|
|
71
|
-
entries():
|
|
72
|
-
keys():
|
|
73
|
-
values():
|
|
63
|
+
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
|
|
64
|
+
entries(): IterableIterator<[number, CSSTransformComponent]>;
|
|
65
|
+
keys(): IterableIterator<number>;
|
|
66
|
+
values(): IterableIterator<CSSTransformComponent>;
|
|
74
67
|
}
|
|
75
68
|
|
|
76
69
|
interface CSSUnparsedValue {
|
|
77
|
-
[Symbol.iterator]():
|
|
78
|
-
entries():
|
|
79
|
-
keys():
|
|
80
|
-
values():
|
|
70
|
+
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
|
|
71
|
+
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
|
|
72
|
+
keys(): IterableIterator<number>;
|
|
73
|
+
values(): IterableIterator<CSSUnparsedSegment>;
|
|
81
74
|
}
|
|
82
75
|
|
|
83
76
|
interface Cache {
|
|
84
|
-
/**
|
|
85
|
-
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
86
|
-
*
|
|
87
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
88
|
-
*/
|
|
77
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
|
|
89
78
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
90
79
|
}
|
|
91
80
|
|
|
@@ -99,99 +88,76 @@ interface CanvasPathDrawingStyles {
|
|
|
99
88
|
setLineDash(segments: Iterable<number>): void;
|
|
100
89
|
}
|
|
101
90
|
|
|
102
|
-
interface CookieStoreManager {
|
|
103
|
-
/**
|
|
104
|
-
* The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
|
|
105
|
-
*
|
|
106
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
107
|
-
*/
|
|
108
|
-
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
111
|
-
*
|
|
112
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
113
|
-
*/
|
|
114
|
-
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
91
|
interface CustomStateSet extends Set<string> {
|
|
118
92
|
}
|
|
119
93
|
|
|
120
94
|
interface DOMRectList {
|
|
121
|
-
[Symbol.iterator]():
|
|
95
|
+
[Symbol.iterator](): IterableIterator<DOMRect>;
|
|
122
96
|
}
|
|
123
97
|
|
|
124
98
|
interface DOMStringList {
|
|
125
|
-
[Symbol.iterator]():
|
|
99
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
126
100
|
}
|
|
127
101
|
|
|
128
102
|
interface DOMTokenList {
|
|
129
|
-
[Symbol.iterator]():
|
|
130
|
-
entries():
|
|
131
|
-
keys():
|
|
132
|
-
values():
|
|
103
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
104
|
+
entries(): IterableIterator<[number, string]>;
|
|
105
|
+
keys(): IterableIterator<number>;
|
|
106
|
+
values(): IterableIterator<string>;
|
|
133
107
|
}
|
|
134
108
|
|
|
135
109
|
interface DataTransferItemList {
|
|
136
|
-
[Symbol.iterator]():
|
|
110
|
+
[Symbol.iterator](): IterableIterator<DataTransferItem>;
|
|
137
111
|
}
|
|
138
112
|
|
|
139
113
|
interface EventCounts extends ReadonlyMap<string, number> {
|
|
140
114
|
}
|
|
141
115
|
|
|
142
116
|
interface FileList {
|
|
143
|
-
[Symbol.iterator]():
|
|
117
|
+
[Symbol.iterator](): IterableIterator<File>;
|
|
144
118
|
}
|
|
145
119
|
|
|
146
120
|
interface FontFaceSet extends Set<FontFace> {
|
|
147
121
|
}
|
|
148
122
|
|
|
149
|
-
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
150
|
-
[Symbol.iterator](): FormDataIterator<T>;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
123
|
interface FormData {
|
|
154
|
-
[Symbol.iterator]():
|
|
124
|
+
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
155
125
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
156
|
-
entries():
|
|
126
|
+
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
157
127
|
/** Returns a list of keys in the list. */
|
|
158
|
-
keys():
|
|
128
|
+
keys(): IterableIterator<string>;
|
|
159
129
|
/** Returns a list of values in the list. */
|
|
160
|
-
values():
|
|
130
|
+
values(): IterableIterator<FormDataEntryValue>;
|
|
161
131
|
}
|
|
162
132
|
|
|
163
133
|
interface HTMLAllCollection {
|
|
164
|
-
[Symbol.iterator]():
|
|
134
|
+
[Symbol.iterator](): IterableIterator<Element>;
|
|
165
135
|
}
|
|
166
136
|
|
|
167
137
|
interface HTMLCollectionBase {
|
|
168
|
-
[Symbol.iterator]():
|
|
138
|
+
[Symbol.iterator](): IterableIterator<Element>;
|
|
169
139
|
}
|
|
170
140
|
|
|
171
141
|
interface HTMLCollectionOf<T extends Element> {
|
|
172
|
-
[Symbol.iterator]():
|
|
142
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
173
143
|
}
|
|
174
144
|
|
|
175
145
|
interface HTMLFormElement {
|
|
176
|
-
[Symbol.iterator]():
|
|
146
|
+
[Symbol.iterator](): IterableIterator<Element>;
|
|
177
147
|
}
|
|
178
148
|
|
|
179
149
|
interface HTMLSelectElement {
|
|
180
|
-
[Symbol.iterator]():
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
184
|
-
[Symbol.iterator](): HeadersIterator<T>;
|
|
150
|
+
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
|
|
185
151
|
}
|
|
186
152
|
|
|
187
153
|
interface Headers {
|
|
188
|
-
[Symbol.iterator]():
|
|
154
|
+
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
189
155
|
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
190
|
-
entries():
|
|
156
|
+
entries(): IterableIterator<[string, string]>;
|
|
191
157
|
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
|
|
192
|
-
keys():
|
|
158
|
+
keys(): IterableIterator<string>;
|
|
193
159
|
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
|
|
194
|
-
values():
|
|
160
|
+
values(): IterableIterator<string>;
|
|
195
161
|
}
|
|
196
162
|
|
|
197
163
|
interface Highlight extends Set<AbstractRange> {
|
|
@@ -202,7 +168,7 @@ interface HighlightRegistry extends Map<string, Highlight> {
|
|
|
202
168
|
|
|
203
169
|
interface IDBDatabase {
|
|
204
170
|
/**
|
|
205
|
-
*
|
|
171
|
+
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
206
172
|
*
|
|
207
173
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
208
174
|
*/
|
|
@@ -211,257 +177,195 @@ interface IDBDatabase {
|
|
|
211
177
|
|
|
212
178
|
interface IDBObjectStore {
|
|
213
179
|
/**
|
|
214
|
-
*
|
|
180
|
+
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
181
|
+
*
|
|
182
|
+
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
215
183
|
*
|
|
216
184
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
217
185
|
*/
|
|
218
186
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
219
187
|
}
|
|
220
188
|
|
|
221
|
-
interface ImageTrackList {
|
|
222
|
-
[Symbol.iterator](): ArrayIterator<ImageTrack>;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
189
|
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
226
190
|
}
|
|
227
191
|
|
|
228
192
|
interface MIDIOutput {
|
|
229
|
-
/**
|
|
230
|
-
* The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
|
|
231
|
-
*
|
|
232
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
|
|
233
|
-
*/
|
|
193
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
|
|
234
194
|
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
|
|
235
195
|
}
|
|
236
196
|
|
|
237
197
|
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
|
|
238
198
|
}
|
|
239
199
|
|
|
240
|
-
interface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
241
|
-
[Symbol.iterator](): MediaKeyStatusMapIterator<T>;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
200
|
interface MediaKeyStatusMap {
|
|
245
|
-
[Symbol.iterator]():
|
|
246
|
-
entries():
|
|
247
|
-
keys():
|
|
248
|
-
values():
|
|
201
|
+
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
202
|
+
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
203
|
+
keys(): IterableIterator<BufferSource>;
|
|
204
|
+
values(): IterableIterator<MediaKeyStatus>;
|
|
249
205
|
}
|
|
250
206
|
|
|
251
207
|
interface MediaList {
|
|
252
|
-
[Symbol.iterator]():
|
|
208
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
253
209
|
}
|
|
254
210
|
|
|
255
211
|
interface MessageEvent<T = any> {
|
|
256
|
-
/**
|
|
212
|
+
/**
|
|
213
|
+
* @deprecated
|
|
214
|
+
*
|
|
215
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
|
|
216
|
+
*/
|
|
257
217
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
258
218
|
}
|
|
259
219
|
|
|
260
220
|
interface MimeTypeArray {
|
|
261
|
-
[Symbol.iterator]():
|
|
221
|
+
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
262
222
|
}
|
|
263
223
|
|
|
264
224
|
interface NamedNodeMap {
|
|
265
|
-
[Symbol.iterator]():
|
|
225
|
+
[Symbol.iterator](): IterableIterator<Attr>;
|
|
266
226
|
}
|
|
267
227
|
|
|
268
228
|
interface Navigator {
|
|
269
229
|
/**
|
|
270
|
-
* The **`requestMediaKeySystemAccess()`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
|
|
271
230
|
* Available only in secure contexts.
|
|
272
231
|
*
|
|
273
232
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
|
|
274
233
|
*/
|
|
275
234
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
|
|
276
|
-
/**
|
|
277
|
-
* The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
|
|
278
|
-
*
|
|
279
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
|
|
280
|
-
*/
|
|
235
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
|
|
281
236
|
vibrate(pattern: Iterable<number>): boolean;
|
|
282
237
|
}
|
|
283
238
|
|
|
284
239
|
interface NodeList {
|
|
285
|
-
[Symbol.iterator]():
|
|
240
|
+
[Symbol.iterator](): IterableIterator<Node>;
|
|
286
241
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
287
|
-
entries():
|
|
242
|
+
entries(): IterableIterator<[number, Node]>;
|
|
288
243
|
/** Returns an list of keys in the list. */
|
|
289
|
-
keys():
|
|
244
|
+
keys(): IterableIterator<number>;
|
|
290
245
|
/** Returns an list of values in the list. */
|
|
291
|
-
values():
|
|
246
|
+
values(): IterableIterator<Node>;
|
|
292
247
|
}
|
|
293
248
|
|
|
294
249
|
interface NodeListOf<TNode extends Node> {
|
|
295
|
-
[Symbol.iterator]():
|
|
250
|
+
[Symbol.iterator](): IterableIterator<TNode>;
|
|
296
251
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
297
|
-
entries():
|
|
252
|
+
entries(): IterableIterator<[number, TNode]>;
|
|
298
253
|
/** Returns an list of keys in the list. */
|
|
299
|
-
keys():
|
|
254
|
+
keys(): IterableIterator<number>;
|
|
300
255
|
/** Returns an list of values in the list. */
|
|
301
|
-
values():
|
|
256
|
+
values(): IterableIterator<TNode>;
|
|
302
257
|
}
|
|
303
258
|
|
|
304
259
|
interface Plugin {
|
|
305
|
-
[Symbol.iterator]():
|
|
260
|
+
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
306
261
|
}
|
|
307
262
|
|
|
308
263
|
interface PluginArray {
|
|
309
|
-
[Symbol.iterator]():
|
|
264
|
+
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
310
265
|
}
|
|
311
266
|
|
|
312
267
|
interface RTCRtpTransceiver {
|
|
313
|
-
/**
|
|
314
|
-
|
|
315
|
-
*
|
|
316
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
|
|
317
|
-
*/
|
|
318
|
-
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
|
|
268
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
|
|
269
|
+
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
|
|
319
270
|
}
|
|
320
271
|
|
|
321
272
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
322
273
|
}
|
|
323
274
|
|
|
324
275
|
interface SVGLengthList {
|
|
325
|
-
[Symbol.iterator]():
|
|
276
|
+
[Symbol.iterator](): IterableIterator<SVGLength>;
|
|
326
277
|
}
|
|
327
278
|
|
|
328
279
|
interface SVGNumberList {
|
|
329
|
-
[Symbol.iterator]():
|
|
280
|
+
[Symbol.iterator](): IterableIterator<SVGNumber>;
|
|
330
281
|
}
|
|
331
282
|
|
|
332
283
|
interface SVGPointList {
|
|
333
|
-
[Symbol.iterator]():
|
|
284
|
+
[Symbol.iterator](): IterableIterator<DOMPoint>;
|
|
334
285
|
}
|
|
335
286
|
|
|
336
287
|
interface SVGStringList {
|
|
337
|
-
[Symbol.iterator]():
|
|
288
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
338
289
|
}
|
|
339
290
|
|
|
340
291
|
interface SVGTransformList {
|
|
341
|
-
[Symbol.iterator]():
|
|
292
|
+
[Symbol.iterator](): IterableIterator<SVGTransform>;
|
|
342
293
|
}
|
|
343
294
|
|
|
344
295
|
interface SourceBufferList {
|
|
345
|
-
[Symbol.iterator]():
|
|
296
|
+
[Symbol.iterator](): IterableIterator<SourceBuffer>;
|
|
346
297
|
}
|
|
347
298
|
|
|
348
299
|
interface SpeechRecognitionResult {
|
|
349
|
-
[Symbol.iterator]():
|
|
300
|
+
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
|
|
350
301
|
}
|
|
351
302
|
|
|
352
303
|
interface SpeechRecognitionResultList {
|
|
353
|
-
[Symbol.iterator]():
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
357
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
|
|
304
|
+
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
|
|
358
305
|
}
|
|
359
306
|
|
|
360
307
|
interface StylePropertyMapReadOnly {
|
|
361
|
-
[Symbol.iterator]():
|
|
362
|
-
entries():
|
|
363
|
-
keys():
|
|
364
|
-
values():
|
|
308
|
+
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
|
|
309
|
+
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
|
|
310
|
+
keys(): IterableIterator<string>;
|
|
311
|
+
values(): IterableIterator<Iterable<CSSStyleValue>>;
|
|
365
312
|
}
|
|
366
313
|
|
|
367
314
|
interface StyleSheetList {
|
|
368
|
-
[Symbol.iterator]():
|
|
315
|
+
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
|
|
369
316
|
}
|
|
370
317
|
|
|
371
318
|
interface SubtleCrypto {
|
|
372
|
-
/**
|
|
373
|
-
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
374
|
-
*
|
|
375
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
376
|
-
*/
|
|
319
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
|
377
320
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
378
|
-
/**
|
|
379
|
-
|
|
380
|
-
*
|
|
381
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
382
|
-
*/
|
|
383
|
-
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
321
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
|
322
|
+
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
384
323
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
385
324
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
386
325
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
387
|
-
/**
|
|
388
|
-
* The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
|
|
389
|
-
*
|
|
390
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
391
|
-
*/
|
|
326
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
|
|
392
327
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
393
328
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
394
|
-
/**
|
|
395
|
-
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
396
|
-
*
|
|
397
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
398
|
-
*/
|
|
329
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
|
|
399
330
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
400
331
|
}
|
|
401
332
|
|
|
402
333
|
interface TextTrackCueList {
|
|
403
|
-
[Symbol.iterator]():
|
|
334
|
+
[Symbol.iterator](): IterableIterator<TextTrackCue>;
|
|
404
335
|
}
|
|
405
336
|
|
|
406
337
|
interface TextTrackList {
|
|
407
|
-
[Symbol.iterator]():
|
|
338
|
+
[Symbol.iterator](): IterableIterator<TextTrack>;
|
|
408
339
|
}
|
|
409
340
|
|
|
410
341
|
interface TouchList {
|
|
411
|
-
[Symbol.iterator]():
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
415
|
-
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
342
|
+
[Symbol.iterator](): IterableIterator<Touch>;
|
|
416
343
|
}
|
|
417
344
|
|
|
418
345
|
interface URLSearchParams {
|
|
419
|
-
[Symbol.iterator]():
|
|
346
|
+
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
420
347
|
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
421
|
-
entries():
|
|
348
|
+
entries(): IterableIterator<[string, string]>;
|
|
422
349
|
/** Returns a list of keys in the search params. */
|
|
423
|
-
keys():
|
|
350
|
+
keys(): IterableIterator<string>;
|
|
424
351
|
/** Returns a list of values in the search params. */
|
|
425
|
-
values():
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
interface ViewTransitionTypeSet extends Set<string> {
|
|
352
|
+
values(): IterableIterator<string>;
|
|
429
353
|
}
|
|
430
354
|
|
|
431
355
|
interface WEBGL_draw_buffers {
|
|
432
|
-
/**
|
|
433
|
-
* The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
|
|
434
|
-
*
|
|
435
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
436
|
-
*/
|
|
356
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
|
|
437
357
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
438
358
|
}
|
|
439
359
|
|
|
440
360
|
interface WEBGL_multi_draw {
|
|
441
|
-
/**
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
|
|
449
|
-
*
|
|
450
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
451
|
-
*/
|
|
452
|
-
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
453
|
-
/**
|
|
454
|
-
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
455
|
-
*
|
|
456
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
457
|
-
*/
|
|
458
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
459
|
-
/**
|
|
460
|
-
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
461
|
-
*
|
|
462
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
463
|
-
*/
|
|
464
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
361
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
|
|
362
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
363
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
|
|
364
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
365
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
|
|
366
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
367
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
|
|
368
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
465
369
|
}
|
|
466
370
|
|
|
467
371
|
interface WebGL2RenderingContextBase {
|
|
@@ -476,7 +380,7 @@ interface WebGL2RenderingContextBase {
|
|
|
476
380
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
477
381
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
478
382
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
479
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint
|
|
383
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
|
|
480
384
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
481
385
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
482
386
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
@@ -526,7 +430,7 @@ interface WebGL2RenderingContextOverloads {
|
|
|
526
430
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
527
431
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
528
432
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
529
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
433
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
530
434
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
531
435
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
532
436
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
@@ -560,38 +560,38 @@ interface StringConstructor {
|
|
|
560
560
|
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
interface Int8Array
|
|
563
|
+
interface Int8Array {
|
|
564
564
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
interface Uint8Array
|
|
567
|
+
interface Uint8Array {
|
|
568
568
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
interface Uint8ClampedArray
|
|
571
|
+
interface Uint8ClampedArray {
|
|
572
572
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
interface Int16Array
|
|
575
|
+
interface Int16Array {
|
|
576
576
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
interface Uint16Array
|
|
579
|
+
interface Uint16Array {
|
|
580
580
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
interface Int32Array
|
|
583
|
+
interface Int32Array {
|
|
584
584
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
interface Uint32Array
|
|
587
|
+
interface Uint32Array {
|
|
588
588
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
interface Float32Array
|
|
591
|
+
interface Float32Array {
|
|
592
592
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
interface Float64Array
|
|
595
|
+
interface Float64Array {
|
|
596
596
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
597
597
|
}
|
|
@@ -18,9 +18,9 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
/// <reference lib="es2015.iterable" />
|
|
20
20
|
|
|
21
|
-
interface Generator<T = unknown, TReturn = any, TNext =
|
|
21
|
+
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
|
|
22
22
|
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
23
|
-
next(...
|
|
23
|
+
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
24
24
|
return(value: TReturn): IteratorResult<T, TReturn>;
|
|
25
25
|
throw(e: any): IteratorResult<T, TReturn>;
|
|
26
26
|
[Symbol.iterator](): Generator<T, TReturn, TNext>;
|