@types/audioworklet 0.0.32 → 0.0.34
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 +64 -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.34 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.34.
|
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;
|
|
@@ -282,6 +264,69 @@ declare var CustomEvent: {
|
|
|
282
264
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
283
265
|
};
|
|
284
266
|
|
|
267
|
+
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
268
|
+
interface DOMException extends Error {
|
|
269
|
+
/** @deprecated */
|
|
270
|
+
readonly code: number;
|
|
271
|
+
readonly message: string;
|
|
272
|
+
readonly name: string;
|
|
273
|
+
readonly ABORT_ERR: number;
|
|
274
|
+
readonly DATA_CLONE_ERR: number;
|
|
275
|
+
readonly DOMSTRING_SIZE_ERR: number;
|
|
276
|
+
readonly HIERARCHY_REQUEST_ERR: number;
|
|
277
|
+
readonly INDEX_SIZE_ERR: number;
|
|
278
|
+
readonly INUSE_ATTRIBUTE_ERR: number;
|
|
279
|
+
readonly INVALID_ACCESS_ERR: number;
|
|
280
|
+
readonly INVALID_CHARACTER_ERR: number;
|
|
281
|
+
readonly INVALID_MODIFICATION_ERR: number;
|
|
282
|
+
readonly INVALID_NODE_TYPE_ERR: number;
|
|
283
|
+
readonly INVALID_STATE_ERR: number;
|
|
284
|
+
readonly NAMESPACE_ERR: number;
|
|
285
|
+
readonly NETWORK_ERR: number;
|
|
286
|
+
readonly NOT_FOUND_ERR: number;
|
|
287
|
+
readonly NOT_SUPPORTED_ERR: number;
|
|
288
|
+
readonly NO_DATA_ALLOWED_ERR: number;
|
|
289
|
+
readonly NO_MODIFICATION_ALLOWED_ERR: number;
|
|
290
|
+
readonly QUOTA_EXCEEDED_ERR: number;
|
|
291
|
+
readonly SECURITY_ERR: number;
|
|
292
|
+
readonly SYNTAX_ERR: number;
|
|
293
|
+
readonly TIMEOUT_ERR: number;
|
|
294
|
+
readonly TYPE_MISMATCH_ERR: number;
|
|
295
|
+
readonly URL_MISMATCH_ERR: number;
|
|
296
|
+
readonly VALIDATION_ERR: number;
|
|
297
|
+
readonly WRONG_DOCUMENT_ERR: number;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
declare var DOMException: {
|
|
301
|
+
prototype: DOMException;
|
|
302
|
+
new(message?: string, name?: string): DOMException;
|
|
303
|
+
readonly ABORT_ERR: number;
|
|
304
|
+
readonly DATA_CLONE_ERR: number;
|
|
305
|
+
readonly DOMSTRING_SIZE_ERR: number;
|
|
306
|
+
readonly HIERARCHY_REQUEST_ERR: number;
|
|
307
|
+
readonly INDEX_SIZE_ERR: number;
|
|
308
|
+
readonly INUSE_ATTRIBUTE_ERR: number;
|
|
309
|
+
readonly INVALID_ACCESS_ERR: number;
|
|
310
|
+
readonly INVALID_CHARACTER_ERR: number;
|
|
311
|
+
readonly INVALID_MODIFICATION_ERR: number;
|
|
312
|
+
readonly INVALID_NODE_TYPE_ERR: number;
|
|
313
|
+
readonly INVALID_STATE_ERR: number;
|
|
314
|
+
readonly NAMESPACE_ERR: number;
|
|
315
|
+
readonly NETWORK_ERR: number;
|
|
316
|
+
readonly NOT_FOUND_ERR: number;
|
|
317
|
+
readonly NOT_SUPPORTED_ERR: number;
|
|
318
|
+
readonly NO_DATA_ALLOWED_ERR: number;
|
|
319
|
+
readonly NO_MODIFICATION_ALLOWED_ERR: number;
|
|
320
|
+
readonly QUOTA_EXCEEDED_ERR: number;
|
|
321
|
+
readonly SECURITY_ERR: number;
|
|
322
|
+
readonly SYNTAX_ERR: number;
|
|
323
|
+
readonly TIMEOUT_ERR: number;
|
|
324
|
+
readonly TYPE_MISMATCH_ERR: number;
|
|
325
|
+
readonly URL_MISMATCH_ERR: number;
|
|
326
|
+
readonly VALIDATION_ERR: number;
|
|
327
|
+
readonly WRONG_DOCUMENT_ERR: number;
|
|
328
|
+
};
|
|
329
|
+
|
|
285
330
|
/** Events providing information related to errors in scripts or in files. */
|
|
286
331
|
interface ErrorEvent extends Event {
|
|
287
332
|
readonly colno: number;
|
|
@@ -300,6 +345,7 @@ declare var ErrorEvent: {
|
|
|
300
345
|
interface Event {
|
|
301
346
|
/** 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
347
|
readonly bubbles: boolean;
|
|
348
|
+
/** @deprecated */
|
|
303
349
|
cancelBubble: boolean;
|
|
304
350
|
/** 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
351
|
readonly cancelable: boolean;
|
|
@@ -442,93 +488,6 @@ declare var MessagePort: {
|
|
|
442
488
|
new(): MessagePort;
|
|
443
489
|
};
|
|
444
490
|
|
|
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
491
|
interface PromiseRejectionEvent extends Event {
|
|
533
492
|
readonly promise: Promise<any>;
|
|
534
493
|
readonly reason: any;
|
|
@@ -964,10 +923,6 @@ interface AudioWorkletProcessorConstructor {
|
|
|
964
923
|
new (options: any): AudioWorkletProcessorImpl;
|
|
965
924
|
}
|
|
966
925
|
|
|
967
|
-
interface PerformanceObserverCallback {
|
|
968
|
-
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
926
|
interface QueuingStrategySize<T = any> {
|
|
972
927
|
(chunk: T): number;
|
|
973
928
|
}
|
|
@@ -1020,7 +975,6 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
1020
975
|
type DOMHighResTimeStamp = number;
|
|
1021
976
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
1022
977
|
type MessageEventSource = MessagePort;
|
|
1023
|
-
type PerformanceEntryList = PerformanceEntry[];
|
|
1024
978
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
1025
979
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
1026
980
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|