@types/audioworklet 0.0.32 → 0.0.33
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 +1 -110
- 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.33 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.33.
|
package/index.d.ts
CHANGED
|
@@ -40,24 +40,6 @@ interface MessageEventInit<T = any> extends EventInit {
|
|
|
40
40
|
source?: MessageEventSource | null;
|
|
41
41
|
}
|
|
42
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
43
|
interface PromiseRejectionEventInit extends EventInit {
|
|
62
44
|
promise: Promise<any>;
|
|
63
45
|
reason?: any;
|
|
@@ -300,6 +282,7 @@ declare var ErrorEvent: {
|
|
|
300
282
|
interface Event {
|
|
301
283
|
/** 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. */
|
|
302
284
|
readonly bubbles: boolean;
|
|
285
|
+
/** @deprecated */
|
|
303
286
|
cancelBubble: boolean;
|
|
304
287
|
/** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
|
|
305
288
|
readonly cancelable: boolean;
|
|
@@ -442,93 +425,6 @@ declare var MessagePort: {
|
|
|
442
425
|
new(): MessagePort;
|
|
443
426
|
};
|
|
444
427
|
|
|
445
|
-
interface PerformanceEventMap {
|
|
446
|
-
"resourcetimingbufferfull": Event;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/** 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. */
|
|
450
|
-
interface Performance extends EventTarget {
|
|
451
|
-
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
452
|
-
readonly timeOrigin: DOMHighResTimeStamp;
|
|
453
|
-
clearMarks(markName?: string): void;
|
|
454
|
-
clearMeasures(measureName?: string): void;
|
|
455
|
-
clearResourceTimings(): void;
|
|
456
|
-
getEntries(): PerformanceEntryList;
|
|
457
|
-
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
458
|
-
getEntriesByType(type: string): PerformanceEntryList;
|
|
459
|
-
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
460
|
-
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
|
|
461
|
-
now(): DOMHighResTimeStamp;
|
|
462
|
-
setResourceTimingBufferSize(maxSize: number): void;
|
|
463
|
-
toJSON(): any;
|
|
464
|
-
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
465
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
466
|
-
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
467
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
declare var Performance: {
|
|
471
|
-
prototype: Performance;
|
|
472
|
-
new(): Performance;
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
/** 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). */
|
|
476
|
-
interface PerformanceEntry {
|
|
477
|
-
readonly duration: DOMHighResTimeStamp;
|
|
478
|
-
readonly entryType: string;
|
|
479
|
-
readonly name: string;
|
|
480
|
-
readonly startTime: DOMHighResTimeStamp;
|
|
481
|
-
toJSON(): any;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
declare var PerformanceEntry: {
|
|
485
|
-
prototype: PerformanceEntry;
|
|
486
|
-
new(): PerformanceEntry;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
/** 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. */
|
|
490
|
-
interface PerformanceMark extends PerformanceEntry {
|
|
491
|
-
readonly detail: any;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
declare var PerformanceMark: {
|
|
495
|
-
prototype: PerformanceMark;
|
|
496
|
-
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
/** 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. */
|
|
500
|
-
interface PerformanceMeasure extends PerformanceEntry {
|
|
501
|
-
readonly detail: any;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
declare var PerformanceMeasure: {
|
|
505
|
-
prototype: PerformanceMeasure;
|
|
506
|
-
new(): PerformanceMeasure;
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
interface PerformanceObserver {
|
|
510
|
-
disconnect(): void;
|
|
511
|
-
observe(options?: PerformanceObserverInit): void;
|
|
512
|
-
takeRecords(): PerformanceEntryList;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
declare var PerformanceObserver: {
|
|
516
|
-
prototype: PerformanceObserver;
|
|
517
|
-
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
518
|
-
readonly supportedEntryTypes: ReadonlyArray<string>;
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
interface PerformanceObserverEntryList {
|
|
522
|
-
getEntries(): PerformanceEntryList;
|
|
523
|
-
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
524
|
-
getEntriesByType(type: string): PerformanceEntryList;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
declare var PerformanceObserverEntryList: {
|
|
528
|
-
prototype: PerformanceObserverEntryList;
|
|
529
|
-
new(): PerformanceObserverEntryList;
|
|
530
|
-
};
|
|
531
|
-
|
|
532
428
|
interface PromiseRejectionEvent extends Event {
|
|
533
429
|
readonly promise: Promise<any>;
|
|
534
430
|
readonly reason: any;
|
|
@@ -964,10 +860,6 @@ interface AudioWorkletProcessorConstructor {
|
|
|
964
860
|
new (options: any): AudioWorkletProcessorImpl;
|
|
965
861
|
}
|
|
966
862
|
|
|
967
|
-
interface PerformanceObserverCallback {
|
|
968
|
-
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
863
|
interface QueuingStrategySize<T = any> {
|
|
972
864
|
(chunk: T): number;
|
|
973
865
|
}
|
|
@@ -1020,7 +912,6 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
1020
912
|
type DOMHighResTimeStamp = number;
|
|
1021
913
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
1022
914
|
type MessageEventSource = MessagePort;
|
|
1023
|
-
type PerformanceEntryList = PerformanceEntry[];
|
|
1024
915
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
1025
916
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
1026
917
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|