@@ -2288,8 +2288,8 @@ interface Console {
2288
2288
dirxml(value: any): void;
2289
2289
error(message?: any, ...optionalParams: any[]): void;
2290
2290
exception(message?: string, ...optionalParams: any[]): void;
2291
- group(groupTitle?: string): void;
2292
- groupCollapsed(groupTitle?: string): void;
2291
+ group(groupTitle?: string, ...optionalParams: any[] ): void;
2292
+ groupCollapsed(groupTitle?: string, ...optionalParams: any[] ): void;
2293
2293
groupEnd(): void;
2294
2294
info(message?: any, ...optionalParams: any[]): void;
2295
2295
log(message?: any, ...optionalParams: any[]): void;
@@ -3641,9 +3641,9 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
3641
3641
scrollTo(x: number, y: number): void;
3642
3642
scrollBy(options?: ScrollToOptions): void;
3643
3643
scrollBy(x: number, y: number): void;
3644
- insertAdjacentElement(position: string , insertedElement: Element): Element | null;
3645
- insertAdjacentHTML(where: string , html: string): void;
3646
- insertAdjacentText(where: string , text: string): void;
3644
+ insertAdjacentElement(position: InsertPosition , insertedElement: Element): Element | null;
3645
+ insertAdjacentHTML(where: InsertPosition , html: string): void;
3646
+ insertAdjacentText(where: InsertPosition , text: string): void;
3647
3647
attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
3648
3648
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
3649
3649
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
@@ -5725,7 +5725,7 @@ interface HTMLMediaElement extends HTMLElement {
5725
5725
/**
5726
5726
* Loads and starts playback of a media resource.
5727
5727
*/
5728
- play(): void;
5728
+ play(): Promise< void> ;
5729
5729
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
5730
5730
readonly HAVE_CURRENT_DATA: number;
5731
5731
readonly HAVE_ENOUGH_DATA: number;
@@ -9366,6 +9366,8 @@ interface Response extends Object, Body {
9366
9366
declare var Response: {
9367
9367
prototype: Response;
9368
9368
new(body?: any, init?: ResponseInit): Response;
9369
+ error: () => Response;
9370
+ redirect: (url: string, status?: number) => Response;
9369
9371
}
9370
9372
9371
9373
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
@@ -14963,6 +14965,7 @@ type BufferSource = ArrayBuffer | ArrayBufferView;
14963
14965
type MouseWheelEvent = WheelEvent;
14964
14966
type ScrollRestoration = "auto" | "manual";
14965
14967
type FormDataEntryValue = string | File;
14968
+ type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
14966
14969
type AppendMode = "segments" | "sequence";
14967
14970
type AudioContextState = "suspended" | "running" | "closed";
14968
14971
type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";
@@ -15033,4 +15036,4 @@ type ServiceWorkerState = "installing" | "installed" | "activating" | "activated
15033
15036
type Transport = "usb" | "nfc" | "ble";
15034
15037
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
15035
15038
type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";
15036
- type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
15039
+ type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
0 commit comments