diff --git a/baselines/audioworklet.iterable.generated.d.ts b/baselines/audioworklet.iterable.generated.d.ts index 27eac6607..1cea07860 100644 --- a/baselines/audioworklet.iterable.generated.d.ts +++ b/baselines/audioworklet.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// AudioWorklet Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/dom.iterable.generated.d.ts b/baselines/dom.iterable.generated.d.ts index 2744137b1..5477bd6ab 100644 --- a/baselines/dom.iterable.generated.d.ts +++ b/baselines/dom.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// Window Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: Iterable, startTime: number, duration: number): AudioParam; diff --git a/baselines/serviceworker.iterable.generated.d.ts b/baselines/serviceworker.iterable.generated.d.ts index 35dcccd08..3491ab037 100644 --- a/baselines/serviceworker.iterable.generated.d.ts +++ b/baselines/serviceworker.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// ServiceWorker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): ArrayIterator; entries(): ArrayIterator<[number, CSSNumericValue]>; diff --git a/baselines/sharedworker.iterable.generated.d.ts b/baselines/sharedworker.iterable.generated.d.ts index f14687ad4..a04370d23 100644 --- a/baselines/sharedworker.iterable.generated.d.ts +++ b/baselines/sharedworker.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// SharedWorker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): ArrayIterator; entries(): ArrayIterator<[number, CSSNumericValue]>; diff --git a/baselines/ts5.5/audioworklet.iterable.generated.d.ts b/baselines/ts5.5/audioworklet.iterable.generated.d.ts index 3ae95eabd..0218cd3c0 100644 --- a/baselines/ts5.5/audioworklet.iterable.generated.d.ts +++ b/baselines/ts5.5/audioworklet.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// AudioWorklet Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface MessageEvent { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; diff --git a/baselines/ts5.5/dom.iterable.generated.d.ts b/baselines/ts5.5/dom.iterable.generated.d.ts index 525db4615..92d2e11b2 100644 --- a/baselines/ts5.5/dom.iterable.generated.d.ts +++ b/baselines/ts5.5/dom.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// Window Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: Iterable, startTime: number, duration: number): AudioParam; diff --git a/baselines/ts5.5/serviceworker.iterable.generated.d.ts b/baselines/ts5.5/serviceworker.iterable.generated.d.ts index 61c3fe9dd..b311f34ec 100644 --- a/baselines/ts5.5/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.5/serviceworker.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// ServiceWorker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): IterableIterator; entries(): IterableIterator<[number, CSSNumericValue]>; diff --git a/baselines/ts5.5/sharedworker.iterable.generated.d.ts b/baselines/ts5.5/sharedworker.iterable.generated.d.ts index bf594e6a5..3e13f67c8 100644 --- a/baselines/ts5.5/sharedworker.iterable.generated.d.ts +++ b/baselines/ts5.5/sharedworker.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// SharedWorker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): IterableIterator; entries(): IterableIterator<[number, CSSNumericValue]>; diff --git a/baselines/ts5.5/webworker.iterable.generated.d.ts b/baselines/ts5.5/webworker.iterable.generated.d.ts index b34d9959e..8e34bfb3a 100644 --- a/baselines/ts5.5/webworker.iterable.generated.d.ts +++ b/baselines/ts5.5/webworker.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// Worker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): IterableIterator; entries(): IterableIterator<[number, CSSNumericValue]>; diff --git a/baselines/webworker.iterable.generated.d.ts b/baselines/webworker.iterable.generated.d.ts index 3388a0b99..bb5625ddd 100644 --- a/baselines/webworker.iterable.generated.d.ts +++ b/baselines/webworker.iterable.generated.d.ts @@ -2,11 +2,6 @@ /// Worker Iterable APIs ///////////////////////////// -interface AbortSignal { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: Iterable): AbortSignal; -} - interface CSSNumericArray { [Symbol.iterator](): ArrayIterator; entries(): ArrayIterator<[number, CSSNumericValue]>; diff --git a/src/build/emitter.ts b/src/build/emitter.ts index 04ff4b1ce..0760d7dd7 100644 --- a/src/build/emitter.ts +++ b/src/build/emitter.ts @@ -1736,7 +1736,7 @@ export function emitWebIdl( const methodsWithSequence: Browser.Method[] = mapToArray( i.methods ? i.methods.method : {}, ) - .filter((m) => m.signature && !m.overrideSignatures) + .filter((m) => m.signature && !m.overrideSignatures && !m.static) .map((m) => ({ ...m, signature: replaceTypedefsInSignatures(