Skip to content

Update webref/idl to 2.2.8 #1074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10178,22 +10178,22 @@ interface MimeType {
* Returns the MIME type's description.
* @deprecated
*/
readonly description: undefined;
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*/
readonly enabledPlugin: undefined;
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*/
readonly suffixes: undefined;
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*/
readonly type: undefined;
readonly type: string;
}

/** @deprecated */
Expand All @@ -10210,10 +10210,10 @@ interface MimeTypeArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): any;
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): any;
[index: number]: any;
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}

/** @deprecated */
Expand Down Expand Up @@ -10258,11 +10258,17 @@ declare var MouseEvent: {
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
*/
interface MutationEvent extends Event {
/** @deprecated */
readonly attrChange: number;
/** @deprecated */
readonly attrName: string;
/** @deprecated */
readonly newValue: string;
/** @deprecated */
readonly prevValue: string;
/** @deprecated */
readonly relatedNode: Node | null;
/** @deprecated */
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly ADDITION: number;
readonly MODIFICATION: number;
Expand Down Expand Up @@ -10437,7 +10443,6 @@ interface NavigatorOnLine {
readonly onLine: boolean;
}

/** @deprecated */
interface NavigatorPlugins {
/** @deprecated */
readonly mimeTypes: MimeTypeArray;
Expand Down Expand Up @@ -11397,30 +11402,30 @@ interface Plugin {
* Returns the plugin's description.
* @deprecated
*/
readonly description: undefined;
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*/
readonly filename: undefined;
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: undefined;
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*/
readonly name: undefined;
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*/
item(index: number): void;
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): void;
[index: number]: undefined;
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}

/** @deprecated */
Expand All @@ -11437,12 +11442,12 @@ interface PluginArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): any;
item(index: number): Plugin | null;
/** @deprecated */
namedItem(name: string): any;
namedItem(name: string): Plugin | null;
/** @deprecated */
refresh(): void;
[index: number]: any;
[index: number]: Plugin;
}

/** @deprecated */
Expand Down Expand Up @@ -11713,6 +11718,7 @@ interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": Event;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
Expand All @@ -11732,6 +11738,7 @@ interface RTCPeerConnection extends EventTarget {
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
Expand Down
6 changes: 3 additions & 3 deletions baselines/dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ interface MessageEvent<T = any> {
}

interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<any>;
[Symbol.iterator](): IterableIterator<MimeType>;
}

interface NamedNodeMap {
Expand Down Expand Up @@ -186,11 +186,11 @@ interface NodeListOf<TNode extends Node> {
}

interface Plugin {
[Symbol.iterator](): IterableIterator<undefined>;
[Symbol.iterator](): IterableIterator<MimeType>;
}

interface PluginArray {
[Symbol.iterator](): IterableIterator<any>;
[Symbol.iterator](): IterableIterator<Plugin>;
}

interface RTCStatsReport extends ReadonlyMap<string, any> {
Expand Down
Loading