Skip to content

Commit fce78f3

Browse files
authored
Manually update to webref/idl@3.17.0 (#1400)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent c0095a3 commit fce78f3

15 files changed

+1071
-1005
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,6 @@ interface MessageEventInit<T = any> extends EventInit {
3838
source?: MessageEventSource | null;
3939
}
4040

41-
interface PerformanceMarkOptions {
42-
detail?: any;
43-
startTime?: DOMHighResTimeStamp;
44-
}
45-
46-
interface PerformanceMeasureOptions {
47-
detail?: any;
48-
duration?: DOMHighResTimeStamp;
49-
end?: string | DOMHighResTimeStamp;
50-
start?: string | DOMHighResTimeStamp;
51-
}
52-
53-
interface PerformanceObserverInit {
54-
buffered?: boolean;
55-
entryTypes?: string[];
56-
type?: string;
57-
}
58-
5941
interface PromiseRejectionEventInit extends EventInit {
6042
promise: Promise<any>;
6143
reason?: any;
@@ -441,93 +423,6 @@ declare var MessagePort: {
441423
new(): MessagePort;
442424
};
443425

444-
interface PerformanceEventMap {
445-
"resourcetimingbufferfull": Event;
446-
}
447-
448-
/** 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. */
449-
interface Performance extends EventTarget {
450-
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
451-
readonly timeOrigin: DOMHighResTimeStamp;
452-
clearMarks(markName?: string): void;
453-
clearMeasures(measureName?: string): void;
454-
clearResourceTimings(): void;
455-
getEntries(): PerformanceEntryList;
456-
getEntriesByName(name: string, type?: string): PerformanceEntryList;
457-
getEntriesByType(type: string): PerformanceEntryList;
458-
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
459-
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
460-
now(): DOMHighResTimeStamp;
461-
setResourceTimingBufferSize(maxSize: number): void;
462-
toJSON(): any;
463-
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
464-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
465-
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
466-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
467-
}
468-
469-
declare var Performance: {
470-
prototype: Performance;
471-
new(): Performance;
472-
};
473-
474-
/** 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). */
475-
interface PerformanceEntry {
476-
readonly duration: DOMHighResTimeStamp;
477-
readonly entryType: string;
478-
readonly name: string;
479-
readonly startTime: DOMHighResTimeStamp;
480-
toJSON(): any;
481-
}
482-
483-
declare var PerformanceEntry: {
484-
prototype: PerformanceEntry;
485-
new(): PerformanceEntry;
486-
};
487-
488-
/** 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. */
489-
interface PerformanceMark extends PerformanceEntry {
490-
readonly detail: any;
491-
}
492-
493-
declare var PerformanceMark: {
494-
prototype: PerformanceMark;
495-
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
496-
};
497-
498-
/** 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. */
499-
interface PerformanceMeasure extends PerformanceEntry {
500-
readonly detail: any;
501-
}
502-
503-
declare var PerformanceMeasure: {
504-
prototype: PerformanceMeasure;
505-
new(): PerformanceMeasure;
506-
};
507-
508-
interface PerformanceObserver {
509-
disconnect(): void;
510-
observe(options?: PerformanceObserverInit): void;
511-
takeRecords(): PerformanceEntryList;
512-
}
513-
514-
declare var PerformanceObserver: {
515-
prototype: PerformanceObserver;
516-
new(callback: PerformanceObserverCallback): PerformanceObserver;
517-
readonly supportedEntryTypes: ReadonlyArray<string>;
518-
};
519-
520-
interface PerformanceObserverEntryList {
521-
getEntries(): PerformanceEntryList;
522-
getEntriesByName(name: string, type?: string): PerformanceEntryList;
523-
getEntriesByType(type: string): PerformanceEntryList;
524-
}
525-
526-
declare var PerformanceObserverEntryList: {
527-
prototype: PerformanceObserverEntryList;
528-
new(): PerformanceObserverEntryList;
529-
};
530-
531426
interface PromiseRejectionEvent extends Event {
532427
readonly promise: Promise<any>;
533428
readonly reason: any;
@@ -963,10 +858,6 @@ interface AudioWorkletProcessorConstructor {
963858
new (options: any): AudioWorkletProcessorImpl;
964859
}
965860

966-
interface PerformanceObserverCallback {
967-
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
968-
}
969-
970861
interface QueuingStrategySize<T = any> {
971862
(chunk: T): number;
972863
}
@@ -1019,7 +910,6 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
1019910
type DOMHighResTimeStamp = number;
1020911
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1021912
type MessageEventSource = MessagePort;
1022-
type PerformanceEntryList = PerformanceEntry[];
1023913
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
1024914
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
1025915
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;

0 commit comments

Comments
 (0)