@@ -3471,7 +3471,7 @@ interface CustomEvent<T = any> extends Event {
3471
3471
*/
3472
3472
readonly detail: T;
3473
3473
/** @deprecated */
3474
- initCustomEvent(typeArg : string, canBubbleArg : boolean, cancelableArg : boolean, detailArg : T): void;
3474
+ initCustomEvent(type : string, bubbles? : boolean, cancelable? : boolean, detail? : T): void;
3475
3475
}
3476
3476
3477
3477
declare var CustomEvent: {
@@ -3821,7 +3821,7 @@ interface DOMTokenList {
3821
3821
*
3822
3822
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
3823
3823
*/
3824
- replace(oldToken : string, newToken: string): void ;
3824
+ replace(token : string, newToken: string): boolean ;
3825
3825
/**
3826
3826
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
3827
3827
*
@@ -4221,8 +4221,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4221
4221
/** @deprecated */
4222
4222
captureEvents(): void;
4223
4223
/** @deprecated */
4224
- caretRangeFromPoint(x: number, y: number): Range;
4225
- /** @deprecated */
4226
4224
clear(): void;
4227
4225
/**
4228
4226
* Closes an output stream and forces the sent data to display.
@@ -4414,7 +4412,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4414
4412
*/
4415
4413
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
4416
4414
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
4417
- getElementsByTagNameNS(namespaceURI : string, localName: string): HTMLCollectionOf<Element>;
4415
+ getElementsByTagNameNS(namespace : string | null , localName: string): HTMLCollectionOf<Element>;
4418
4416
/**
4419
4417
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
4420
4418
*/
@@ -4436,7 +4434,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4436
4434
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
4437
4435
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
4438
4436
*/
4439
- open(url?: string, name?: string, features?: string, replace?: boolean): Document;
4437
+ open(unused1?: string, unused2?: string): Document;
4438
+ open(url: string, name: string, features: string): WindowProxy | null;
4440
4439
/**
4441
4440
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
4442
4441
* @param commandId Specifies a command identifier.
@@ -4506,8 +4505,6 @@ interface DocumentAndElementEventHandlers {
4506
4505
4507
4506
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
4508
4507
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
4509
- readonly ownerDocument: Document;
4510
- getElementById(elementId: string): HTMLElement | null;
4511
4508
}
4512
4509
4513
4510
declare var DocumentFragment: {
@@ -4715,9 +4712,9 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
4715
4712
*/
4716
4713
hasAttributes(): boolean;
4717
4714
hasPointerCapture(pointerId: number): boolean;
4718
- insertAdjacentElement(position : InsertPosition, insertedElement : Element): Element | null;
4719
- insertAdjacentHTML(where : InsertPosition, html : string): void;
4720
- insertAdjacentText(where: InsertPosition, text : string): void;
4715
+ insertAdjacentElement(where : InsertPosition, element : Element): Element | null;
4716
+ insertAdjacentHTML(position : InsertPosition, text : string): void;
4717
+ insertAdjacentText(where: InsertPosition, data : string): void;
4721
4718
/**
4722
4719
* Returns true if matching selectors against element's root yields element, and false otherwise.
4723
4720
*/
@@ -9354,9 +9351,9 @@ interface MediaQueryList extends EventTarget {
9354
9351
readonly media: string;
9355
9352
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
9356
9353
/** @deprecated */
9357
- addListener(listener : ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
9354
+ addListener(callback : ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
9358
9355
/** @deprecated */
9359
- removeListener(listener : ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
9356
+ removeListener(callback : ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
9360
9357
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9361
9358
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9362
9359
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -9790,7 +9787,7 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9790
9787
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9791
9788
sendBeacon(url: string, data?: BodyInit | null): boolean;
9792
9789
share(data?: ShareData): Promise<void>;
9793
- vibrate(pattern: number | number[] ): boolean;
9790
+ vibrate(pattern: VibratePattern ): boolean;
9794
9791
}
9795
9792
9796
9793
declare var Navigator: {
@@ -15788,7 +15785,7 @@ interface WebGLRenderingContextBase {
15788
15785
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
15789
15786
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
15790
15787
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
15791
- getExtension(extensionName : string): any;
15788
+ getExtension(name : string): any;
15792
15789
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
15793
15790
getParameter(pname: GLenum): any;
15794
15791
getProgramInfoLog(program: WebGLProgram): string | null;
@@ -16406,7 +16403,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
16406
16403
matchMedia(query: string): MediaQueryList;
16407
16404
moveBy(x: number, y: number): void;
16408
16405
moveTo(x: number, y: number): void;
16409
- open(url?: string, target?: string, features?: string, replace?: boolean ): Window | null;
16406
+ open(url?: string, target?: string, features?: string): WindowProxy | null;
16410
16407
/**
16411
16408
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
16412
16409
*
@@ -16419,6 +16416,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
16419
16416
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
16420
16417
*/
16421
16418
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
16419
+ postMessage(message: any, options?: WindowPostMessageOptions): void;
16422
16420
print(): void;
16423
16421
prompt(message?: string, _default?: string): string | null;
16424
16422
/** @deprecated */
@@ -17050,7 +17048,7 @@ interface PositionErrorCallback {
17050
17048
}
17051
17049
17052
17050
interface QueuingStrategySize<T = any> {
17053
- (chunk: T): number;
17051
+ (chunk? : T): number;
17054
17052
}
17055
17053
17056
17054
interface RTCPeerConnectionErrorCallback {
@@ -17070,39 +17068,39 @@ interface TransformerFlushCallback<O> {
17070
17068
}
17071
17069
17072
17070
interface TransformerStartCallback<O> {
17073
- (controller: TransformStreamDefaultController<O>): void | PromiseLike<void> ;
17071
+ (controller: TransformStreamDefaultController<O>): any ;
17074
17072
}
17075
17073
17076
17074
interface TransformerTransformCallback<I, O> {
17077
17075
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
17078
17076
}
17079
17077
17080
17078
interface UnderlyingSinkAbortCallback {
17081
- (reason: any): void | PromiseLike<void>;
17079
+ (reason? : any): void | PromiseLike<void>;
17082
17080
}
17083
17081
17084
17082
interface UnderlyingSinkCloseCallback {
17085
17083
(): void | PromiseLike<void>;
17086
17084
}
17087
17085
17088
17086
interface UnderlyingSinkStartCallback {
17089
- (controller: WritableStreamDefaultController): void | PromiseLike<void> ;
17087
+ (controller: WritableStreamDefaultController): any ;
17090
17088
}
17091
17089
17092
17090
interface UnderlyingSinkWriteCallback<W> {
17093
17091
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
17094
17092
}
17095
17093
17096
17094
interface UnderlyingSourceCancelCallback {
17097
- (reason: any): void | PromiseLike<void>;
17095
+ (reason? : any): void | PromiseLike<void>;
17098
17096
}
17099
17097
17100
17098
interface UnderlyingSourcePullCallback<R> {
17101
17099
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
17102
17100
}
17103
17101
17104
17102
interface UnderlyingSourceStartCallback<R> {
17105
- (controller: ReadableStreamController<R>): void | PromiseLike<void> ;
17103
+ (controller: ReadableStreamController<R>): any ;
17106
17104
}
17107
17105
17108
17106
interface VoidFunction {
@@ -17371,7 +17369,7 @@ declare function getSelection(): Selection | null;
17371
17369
declare function matchMedia(query: string): MediaQueryList;
17372
17370
declare function moveBy(x: number, y: number): void;
17373
17371
declare function moveTo(x: number, y: number): void;
17374
- declare function open(url?: string, target?: string, features?: string, replace?: boolean ): Window | null;
17372
+ declare function open(url?: string, target?: string, features?: string): WindowProxy | null;
17375
17373
/**
17376
17374
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
17377
17375
*
@@ -17384,6 +17382,7 @@ declare function open(url?: string, target?: string, features?: string, replace?
17384
17382
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
17385
17383
*/
17386
17384
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
17385
+ declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
17387
17386
declare function print(): void;
17388
17387
declare function prompt(message?: string, _default?: string): string | null;
17389
17388
/** @deprecated */
0 commit comments