@@ -701,6 +701,19 @@ interface LockOptions {
701701 steal?: boolean;
702702}
703703
704+ interface MIDIConnectionEventInit extends EventInit {
705+ port?: MIDIPort;
706+ }
707+
708+ interface MIDIMessageEventInit extends EventInit {
709+ data?: Uint8Array;
710+ }
711+
712+ interface MIDIOptions {
713+ software?: boolean;
714+ sysex?: boolean;
715+ }
716+
704717interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
705718 configuration?: MediaDecodingConfiguration;
706719}
@@ -1948,6 +1961,7 @@ interface AbortSignal extends EventTarget {
19481961 /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
19491962 readonly aborted: boolean;
19501963 onabort: ((this: AbortSignal, ev: Event) => any) | null;
1964+ readonly reason: any;
19511965 addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
19521966 addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
19531967 removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -2803,7 +2817,6 @@ interface CSSStyleDeclaration {
28032817 clipPath: string;
28042818 clipRule: string;
28052819 color: string;
2806- colorAdjust: string;
28072820 colorInterpolation: string;
28082821 colorInterpolationFilters: string;
28092822 colorScheme: string;
@@ -2855,7 +2868,6 @@ interface CSSStyleDeclaration {
28552868 fontStyle: string;
28562869 fontSynthesis: string;
28572870 fontVariant: string;
2858- /** @deprecated */
28592871 fontVariantAlternates: string;
28602872 fontVariantCaps: string;
28612873 fontVariantEastAsian: string;
@@ -2950,7 +2962,6 @@ interface CSSStyleDeclaration {
29502962 objectFit: string;
29512963 objectPosition: string;
29522964 offset: string;
2953- offsetAnchor: string;
29542965 offsetDistance: string;
29552966 offsetPath: string;
29562967 offsetRotate: string;
@@ -2995,6 +3006,7 @@ interface CSSStyleDeclaration {
29953006 placeSelf: string;
29963007 pointerEvents: string;
29973008 position: string;
3009+ printColorAdjust: string;
29983010 quotes: string;
29993011 resize: string;
30003012 right: string;
@@ -4488,6 +4500,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44884500 createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
44894501 createEvent(eventInterface: "InputEvent"): InputEvent;
44904502 createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
4503+ createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
4504+ createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
44914505 createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
44924506 createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
44934507 createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -7699,6 +7713,7 @@ interface HTMLScriptElement extends HTMLElement {
76997713declare var HTMLScriptElement: {
77007714 prototype: HTMLScriptElement;
77017715 new(): HTMLScriptElement;
7716+ supports(type: string): boolean;
77027717};
77037718
77047719/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
@@ -9065,6 +9080,126 @@ declare var LockManager: {
90659080 new(): LockManager;
90669081};
90679082
9083+ interface MIDIAccessEventMap {
9084+ "statechange": Event;
9085+ }
9086+
9087+ /** Available only in secure contexts. */
9088+ interface MIDIAccess extends EventTarget {
9089+ readonly inputs: MIDIInputMap;
9090+ onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
9091+ readonly outputs: MIDIOutputMap;
9092+ readonly sysexEnabled: boolean;
9093+ addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9094+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9095+ removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9096+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9097+ }
9098+
9099+ declare var MIDIAccess: {
9100+ prototype: MIDIAccess;
9101+ new(): MIDIAccess;
9102+ };
9103+
9104+ /** Available only in secure contexts. */
9105+ interface MIDIConnectionEvent extends Event {
9106+ readonly port: MIDIPort;
9107+ }
9108+
9109+ declare var MIDIConnectionEvent: {
9110+ prototype: MIDIConnectionEvent;
9111+ new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
9112+ };
9113+
9114+ interface MIDIInputEventMap extends MIDIPortEventMap {
9115+ "midimessage": Event;
9116+ }
9117+
9118+ /** Available only in secure contexts. */
9119+ interface MIDIInput extends MIDIPort {
9120+ onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
9121+ addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9122+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9123+ removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9124+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9125+ }
9126+
9127+ declare var MIDIInput: {
9128+ prototype: MIDIInput;
9129+ new(): MIDIInput;
9130+ };
9131+
9132+ /** Available only in secure contexts. */
9133+ interface MIDIInputMap {
9134+ forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
9135+ }
9136+
9137+ declare var MIDIInputMap: {
9138+ prototype: MIDIInputMap;
9139+ new(): MIDIInputMap;
9140+ };
9141+
9142+ /** Available only in secure contexts. */
9143+ interface MIDIMessageEvent extends Event {
9144+ readonly data: Uint8Array;
9145+ }
9146+
9147+ declare var MIDIMessageEvent: {
9148+ prototype: MIDIMessageEvent;
9149+ new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
9150+ };
9151+
9152+ /** Available only in secure contexts. */
9153+ interface MIDIOutput extends MIDIPort {
9154+ send(data: number[], timestamp?: DOMHighResTimeStamp): void;
9155+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9156+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9157+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9158+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9159+ }
9160+
9161+ declare var MIDIOutput: {
9162+ prototype: MIDIOutput;
9163+ new(): MIDIOutput;
9164+ };
9165+
9166+ /** Available only in secure contexts. */
9167+ interface MIDIOutputMap {
9168+ forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
9169+ }
9170+
9171+ declare var MIDIOutputMap: {
9172+ prototype: MIDIOutputMap;
9173+ new(): MIDIOutputMap;
9174+ };
9175+
9176+ interface MIDIPortEventMap {
9177+ "statechange": Event;
9178+ }
9179+
9180+ /** Available only in secure contexts. */
9181+ interface MIDIPort extends EventTarget {
9182+ readonly connection: MIDIPortConnectionState;
9183+ readonly id: string;
9184+ readonly manufacturer: string | null;
9185+ readonly name: string | null;
9186+ onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
9187+ readonly state: MIDIPortDeviceState;
9188+ readonly type: MIDIPortType;
9189+ readonly version: string | null;
9190+ close(): Promise<MIDIPort>;
9191+ open(): Promise<MIDIPort>;
9192+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9193+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9194+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9195+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9196+ }
9197+
9198+ declare var MIDIPort: {
9199+ prototype: MIDIPort;
9200+ new(): MIDIPort;
9201+ };
9202+
90689203interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
90699204}
90709205
@@ -9786,6 +9921,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
97869921 canShare(data?: ShareData): boolean;
97879922 getGamepads(): (Gamepad | null)[];
97889923 /** Available only in secure contexts. */
9924+ requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9925+ /** Available only in secure contexts. */
97899926 requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
97909927 sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
97919928 /** Available only in secure contexts. */
@@ -9855,6 +9992,7 @@ interface NavigatorOnLine {
98559992interface NavigatorPlugins {
98569993 /** @deprecated */
98579994 readonly mimeTypes: MimeTypeArray;
9995+ readonly pdfViewerEnabled: boolean;
98589996 /** @deprecated */
98599997 readonly plugins: PluginArray;
98609998 /** @deprecated */
@@ -14396,13 +14534,6 @@ interface WEBGL_compressed_texture_etc1 {
1439614534 readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
1439714535}
1439814536
14399- interface WEBGL_compressed_texture_pvrtc {
14400- readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
14401- readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
14402- readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
14403- readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
14404- }
14405-
1440614537/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
1440714538interface WEBGL_compressed_texture_s3tc {
1440814539 readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -15905,7 +16036,6 @@ interface WebGLRenderingContextBase {
1590516036 getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
1590616037 getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
1590716038 getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
15908- getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
1590916039 getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
1591016040 getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
1591116041 getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
@@ -18074,6 +18204,9 @@ type KeyType = "private" | "public" | "secret";
1807418204type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
1807518205type LineAlignSetting = "center" | "end" | "start";
1807618206type LockMode = "exclusive" | "shared";
18207+ type MIDIPortConnectionState = "closed" | "open" | "pending";
18208+ type MIDIPortDeviceState = "connected" | "disconnected";
18209+ type MIDIPortType = "input" | "output";
1807718210type MediaDecodingType = "file" | "media-source" | "webrtc";
1807818211type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
1807918212type MediaEncodingType = "record" | "webrtc";
0 commit comments