Do not generate iterable signatures for static methods (#1839)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
This commit is contained in:
Родитель
11652aa521
Коммит
ff8c7517a9
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface MessageEvent<T = any> {
|
||||
/** @deprecated */
|
||||
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface AudioParam {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
||||
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
||||
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
||||
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface MessageEvent<T = any> {
|
||||
/** @deprecated */
|
||||
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface AudioParam {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
||||
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
||||
entries(): IterableIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
||||
entries(): IterableIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
||||
entries(): IterableIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
@ -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>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
||||
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче