@types/audioworklet 0.0.23 → 0.0.24
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/README.md +1 -1
- package/index.d.ts +336 -0
- package/iterable.d.ts +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.24 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.24.
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,19 @@
|
|
|
7
7
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
8
8
|
once?: boolean;
|
|
9
9
|
passive?: boolean;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface CustomEventInit<T = any> extends EventInit {
|
|
14
|
+
detail?: T;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ErrorEventInit extends EventInit {
|
|
18
|
+
colno?: number;
|
|
19
|
+
error?: any;
|
|
20
|
+
filename?: string;
|
|
21
|
+
lineno?: number;
|
|
22
|
+
message?: string;
|
|
10
23
|
}
|
|
11
24
|
|
|
12
25
|
interface EventInit {
|
|
@@ -27,6 +40,29 @@ interface MessageEventInit<T = any> extends EventInit {
|
|
|
27
40
|
source?: MessageEventSource | null;
|
|
28
41
|
}
|
|
29
42
|
|
|
43
|
+
interface PerformanceMarkOptions {
|
|
44
|
+
detail?: any;
|
|
45
|
+
startTime?: DOMHighResTimeStamp;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface PerformanceMeasureOptions {
|
|
49
|
+
detail?: any;
|
|
50
|
+
duration?: DOMHighResTimeStamp;
|
|
51
|
+
end?: string | DOMHighResTimeStamp;
|
|
52
|
+
start?: string | DOMHighResTimeStamp;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface PerformanceObserverInit {
|
|
56
|
+
buffered?: boolean;
|
|
57
|
+
entryTypes?: string[];
|
|
58
|
+
type?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface PromiseRejectionEventInit extends EventInit {
|
|
62
|
+
promise: Promise<any>;
|
|
63
|
+
reason?: any;
|
|
64
|
+
}
|
|
65
|
+
|
|
30
66
|
interface QueuingStrategy<T = any> {
|
|
31
67
|
highWaterMark?: number;
|
|
32
68
|
size?: QueuingStrategySize<T>;
|
|
@@ -82,12 +118,27 @@ interface StreamPipeOptions {
|
|
|
82
118
|
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
|
|
83
119
|
*/
|
|
84
120
|
preventClose?: boolean;
|
|
121
|
+
signal?: AbortSignal;
|
|
85
122
|
}
|
|
86
123
|
|
|
87
124
|
interface StructuredSerializeOptions {
|
|
88
125
|
transfer?: Transferable[];
|
|
89
126
|
}
|
|
90
127
|
|
|
128
|
+
interface TextDecodeOptions {
|
|
129
|
+
stream?: boolean;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface TextDecoderOptions {
|
|
133
|
+
fatal?: boolean;
|
|
134
|
+
ignoreBOM?: boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface TextEncoderEncodeIntoResult {
|
|
138
|
+
read?: number;
|
|
139
|
+
written?: number;
|
|
140
|
+
}
|
|
141
|
+
|
|
91
142
|
interface Transformer<I = any, O = any> {
|
|
92
143
|
flush?: TransformerFlushCallback<O>;
|
|
93
144
|
readableType?: undefined;
|
|
@@ -111,6 +162,40 @@ interface UnderlyingSource<R = any> {
|
|
|
111
162
|
type?: undefined;
|
|
112
163
|
}
|
|
113
164
|
|
|
165
|
+
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
166
|
+
interface AbortController {
|
|
167
|
+
/** Returns the AbortSignal object associated with this object. */
|
|
168
|
+
readonly signal: AbortSignal;
|
|
169
|
+
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
|
170
|
+
abort(reason?: any): void;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare var AbortController: {
|
|
174
|
+
prototype: AbortController;
|
|
175
|
+
new(): AbortController;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
interface AbortSignalEventMap {
|
|
179
|
+
"abort": Event;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
183
|
+
interface AbortSignal extends EventTarget {
|
|
184
|
+
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
185
|
+
readonly aborted: boolean;
|
|
186
|
+
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
187
|
+
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
188
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
189
|
+
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
190
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare var AbortSignal: {
|
|
194
|
+
prototype: AbortSignal;
|
|
195
|
+
new(): AbortSignal;
|
|
196
|
+
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
197
|
+
};
|
|
198
|
+
|
|
114
199
|
interface AudioWorkletGlobalScope extends WorkletGlobalScope {
|
|
115
200
|
readonly currentFrame: number;
|
|
116
201
|
readonly currentTime: number;
|
|
@@ -154,6 +239,32 @@ declare var CountQueuingStrategy: {
|
|
|
154
239
|
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
155
240
|
};
|
|
156
241
|
|
|
242
|
+
interface CustomEvent<T = any> extends Event {
|
|
243
|
+
/** Returns any custom data event was created with. Typically used for synthetic events. */
|
|
244
|
+
readonly detail: T;
|
|
245
|
+
/** @deprecated */
|
|
246
|
+
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare var CustomEvent: {
|
|
250
|
+
prototype: CustomEvent;
|
|
251
|
+
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
/** Events providing information related to errors in scripts or in files. */
|
|
255
|
+
interface ErrorEvent extends Event {
|
|
256
|
+
readonly colno: number;
|
|
257
|
+
readonly error: any;
|
|
258
|
+
readonly filename: string;
|
|
259
|
+
readonly lineno: number;
|
|
260
|
+
readonly message: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare var ErrorEvent: {
|
|
264
|
+
prototype: ErrorEvent;
|
|
265
|
+
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
|
|
266
|
+
};
|
|
267
|
+
|
|
157
268
|
/** An event which takes place in the DOM. */
|
|
158
269
|
interface Event {
|
|
159
270
|
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
|
|
@@ -243,6 +354,11 @@ declare var EventTarget: {
|
|
|
243
354
|
new(): EventTarget;
|
|
244
355
|
};
|
|
245
356
|
|
|
357
|
+
interface GenericTransformStream {
|
|
358
|
+
readonly readable: ReadableStream;
|
|
359
|
+
readonly writable: WritableStream;
|
|
360
|
+
}
|
|
361
|
+
|
|
246
362
|
/** A message received by a target object. */
|
|
247
363
|
interface MessageEvent<T = any> extends Event {
|
|
248
364
|
/** Returns the data of the message. */
|
|
@@ -295,6 +411,103 @@ declare var MessagePort: {
|
|
|
295
411
|
new(): MessagePort;
|
|
296
412
|
};
|
|
297
413
|
|
|
414
|
+
interface PerformanceEventMap {
|
|
415
|
+
"resourcetimingbufferfull": Event;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
419
|
+
interface Performance extends EventTarget {
|
|
420
|
+
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
421
|
+
readonly timeOrigin: DOMHighResTimeStamp;
|
|
422
|
+
clearMarks(markName?: string): void;
|
|
423
|
+
clearMeasures(measureName?: string): void;
|
|
424
|
+
clearResourceTimings(): void;
|
|
425
|
+
getEntries(): PerformanceEntryList;
|
|
426
|
+
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
427
|
+
getEntriesByType(type: string): PerformanceEntryList;
|
|
428
|
+
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
429
|
+
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
|
|
430
|
+
now(): DOMHighResTimeStamp;
|
|
431
|
+
setResourceTimingBufferSize(maxSize: number): void;
|
|
432
|
+
toJSON(): any;
|
|
433
|
+
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
434
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
435
|
+
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
436
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare var Performance: {
|
|
440
|
+
prototype: Performance;
|
|
441
|
+
new(): Performance;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
|
|
445
|
+
interface PerformanceEntry {
|
|
446
|
+
readonly duration: DOMHighResTimeStamp;
|
|
447
|
+
readonly entryType: string;
|
|
448
|
+
readonly name: string;
|
|
449
|
+
readonly startTime: DOMHighResTimeStamp;
|
|
450
|
+
toJSON(): any;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare var PerformanceEntry: {
|
|
454
|
+
prototype: PerformanceEntry;
|
|
455
|
+
new(): PerformanceEntry;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
|
|
459
|
+
interface PerformanceMark extends PerformanceEntry {
|
|
460
|
+
readonly detail: any;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
declare var PerformanceMark: {
|
|
464
|
+
prototype: PerformanceMark;
|
|
465
|
+
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
|
|
469
|
+
interface PerformanceMeasure extends PerformanceEntry {
|
|
470
|
+
readonly detail: any;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
declare var PerformanceMeasure: {
|
|
474
|
+
prototype: PerformanceMeasure;
|
|
475
|
+
new(): PerformanceMeasure;
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
interface PerformanceObserver {
|
|
479
|
+
disconnect(): void;
|
|
480
|
+
observe(options?: PerformanceObserverInit): void;
|
|
481
|
+
takeRecords(): PerformanceEntryList;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
declare var PerformanceObserver: {
|
|
485
|
+
prototype: PerformanceObserver;
|
|
486
|
+
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
487
|
+
readonly supportedEntryTypes: ReadonlyArray<string>;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
interface PerformanceObserverEntryList {
|
|
491
|
+
getEntries(): PerformanceEntryList;
|
|
492
|
+
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
493
|
+
getEntriesByType(type: string): PerformanceEntryList;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
declare var PerformanceObserverEntryList: {
|
|
497
|
+
prototype: PerformanceObserverEntryList;
|
|
498
|
+
new(): PerformanceObserverEntryList;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
interface PromiseRejectionEvent extends Event {
|
|
502
|
+
readonly promise: Promise<any>;
|
|
503
|
+
readonly reason: any;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
declare var PromiseRejectionEvent: {
|
|
507
|
+
prototype: PromiseRejectionEvent;
|
|
508
|
+
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
509
|
+
};
|
|
510
|
+
|
|
298
511
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
299
512
|
interface ReadableStream<R = any> {
|
|
300
513
|
readonly locked: boolean;
|
|
@@ -337,6 +550,76 @@ interface ReadableStreamGenericReader {
|
|
|
337
550
|
cancel(reason?: any): Promise<void>;
|
|
338
551
|
}
|
|
339
552
|
|
|
553
|
+
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
|
|
554
|
+
interface TextDecoder extends TextDecoderCommon {
|
|
555
|
+
/**
|
|
556
|
+
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
|
|
557
|
+
*
|
|
558
|
+
* ```
|
|
559
|
+
* var string = "", decoder = new TextDecoder(encoding), buffer;
|
|
560
|
+
* while(buffer = next_chunk()) {
|
|
561
|
+
* string += decoder.decode(buffer, {stream:true});
|
|
562
|
+
* }
|
|
563
|
+
* string += decoder.decode(); // end-of-queue
|
|
564
|
+
* ```
|
|
565
|
+
*
|
|
566
|
+
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
|
|
567
|
+
*/
|
|
568
|
+
decode(input?: BufferSource, options?: TextDecodeOptions): string;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
declare var TextDecoder: {
|
|
572
|
+
prototype: TextDecoder;
|
|
573
|
+
new(label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
interface TextDecoderCommon {
|
|
577
|
+
/** Returns encoding's name, lowercased. */
|
|
578
|
+
readonly encoding: string;
|
|
579
|
+
/** Returns true if error mode is "fatal", otherwise false. */
|
|
580
|
+
readonly fatal: boolean;
|
|
581
|
+
/** Returns the value of ignore BOM. */
|
|
582
|
+
readonly ignoreBOM: boolean;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
586
|
+
readonly readable: ReadableStream<string>;
|
|
587
|
+
readonly writable: WritableStream<BufferSource>;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
declare var TextDecoderStream: {
|
|
591
|
+
prototype: TextDecoderStream;
|
|
592
|
+
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
|
|
596
|
+
interface TextEncoder extends TextEncoderCommon {
|
|
597
|
+
/** Returns the result of running UTF-8's encoder. */
|
|
598
|
+
encode(input?: string): Uint8Array;
|
|
599
|
+
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
|
|
600
|
+
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
declare var TextEncoder: {
|
|
604
|
+
prototype: TextEncoder;
|
|
605
|
+
new(): TextEncoder;
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
interface TextEncoderCommon {
|
|
609
|
+
/** Returns "utf-8". */
|
|
610
|
+
readonly encoding: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
614
|
+
readonly readable: ReadableStream<Uint8Array>;
|
|
615
|
+
readonly writable: WritableStream<string>;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
declare var TextEncoderStream: {
|
|
619
|
+
prototype: TextEncoderStream;
|
|
620
|
+
new(): TextEncoderStream;
|
|
621
|
+
};
|
|
622
|
+
|
|
340
623
|
interface TransformStream<I = any, O = any> {
|
|
341
624
|
readonly readable: ReadableStream<O>;
|
|
342
625
|
readonly writable: WritableStream<I>;
|
|
@@ -359,6 +642,54 @@ declare var TransformStreamDefaultController: {
|
|
|
359
642
|
new(): TransformStreamDefaultController;
|
|
360
643
|
};
|
|
361
644
|
|
|
645
|
+
/** The URL interface represents an object providing static methods used for creating object URLs. */
|
|
646
|
+
interface URL {
|
|
647
|
+
hash: string;
|
|
648
|
+
host: string;
|
|
649
|
+
hostname: string;
|
|
650
|
+
href: string;
|
|
651
|
+
toString(): string;
|
|
652
|
+
readonly origin: string;
|
|
653
|
+
password: string;
|
|
654
|
+
pathname: string;
|
|
655
|
+
port: string;
|
|
656
|
+
protocol: string;
|
|
657
|
+
search: string;
|
|
658
|
+
readonly searchParams: URLSearchParams;
|
|
659
|
+
username: string;
|
|
660
|
+
toJSON(): string;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
declare var URL: {
|
|
664
|
+
prototype: URL;
|
|
665
|
+
new(url: string | URL, base?: string | URL): URL;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
interface URLSearchParams {
|
|
669
|
+
/** Appends a specified key/value pair as a new search parameter. */
|
|
670
|
+
append(name: string, value: string): void;
|
|
671
|
+
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
|
|
672
|
+
delete(name: string): void;
|
|
673
|
+
/** Returns the first value associated to the given search parameter. */
|
|
674
|
+
get(name: string): string | null;
|
|
675
|
+
/** Returns all the values association with a given search parameter. */
|
|
676
|
+
getAll(name: string): string[];
|
|
677
|
+
/** Returns a Boolean indicating if such a search parameter exists. */
|
|
678
|
+
has(name: string): boolean;
|
|
679
|
+
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
|
|
680
|
+
set(name: string, value: string): void;
|
|
681
|
+
sort(): void;
|
|
682
|
+
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
|
|
683
|
+
toString(): string;
|
|
684
|
+
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
declare var URLSearchParams: {
|
|
688
|
+
prototype: URLSearchParams;
|
|
689
|
+
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
690
|
+
toString(): string;
|
|
691
|
+
};
|
|
692
|
+
|
|
362
693
|
/** Available only in secure contexts. */
|
|
363
694
|
interface WorkletGlobalScope {
|
|
364
695
|
}
|
|
@@ -563,6 +894,10 @@ interface AudioWorkletProcessorConstructor {
|
|
|
563
894
|
(options: any): AudioWorkletProcessor;
|
|
564
895
|
}
|
|
565
896
|
|
|
897
|
+
interface PerformanceObserverCallback {
|
|
898
|
+
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
|
|
899
|
+
}
|
|
900
|
+
|
|
566
901
|
interface QueuingStrategySize<T = any> {
|
|
567
902
|
(chunk: T): number;
|
|
568
903
|
}
|
|
@@ -615,6 +950,7 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
615
950
|
type DOMHighResTimeStamp = number;
|
|
616
951
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
617
952
|
type MessageEventSource = MessagePort;
|
|
953
|
+
type PerformanceEntryList = PerformanceEntry[];
|
|
618
954
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
619
955
|
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
|
|
620
956
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
package/iterable.d.ts
CHANGED
|
@@ -6,3 +6,13 @@ interface MessageEvent<T = any> {
|
|
|
6
6
|
/** @deprecated */
|
|
7
7
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
interface URLSearchParams {
|
|
11
|
+
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
12
|
+
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
13
|
+
entries(): IterableIterator<[string, string]>;
|
|
14
|
+
/** Returns a list of keys in the search params. */
|
|
15
|
+
keys(): IterableIterator<string>;
|
|
16
|
+
/** Returns a list of values in the search params. */
|
|
17
|
+
values(): IterableIterator<string>;
|
|
18
|
+
}
|