@@ -701,6 +701,19 @@ interface LockOptions {
701
701
steal?: boolean;
702
702
}
703
703
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
+
704
717
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
705
718
configuration?: MediaDecodingConfiguration;
706
719
}
@@ -1948,6 +1961,7 @@ interface AbortSignal extends EventTarget {
1948
1961
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
1949
1962
readonly aborted: boolean;
1950
1963
onabort: ((this: AbortSignal, ev: Event) => any) | null;
1964
+ readonly reason: any;
1951
1965
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1952
1966
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1953
1967
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -2803,7 +2817,6 @@ interface CSSStyleDeclaration {
2803
2817
clipPath: string;
2804
2818
clipRule: string;
2805
2819
color: string;
2806
- colorAdjust: string;
2807
2820
colorInterpolation: string;
2808
2821
colorInterpolationFilters: string;
2809
2822
colorScheme: string;
@@ -2855,7 +2868,6 @@ interface CSSStyleDeclaration {
2855
2868
fontStyle: string;
2856
2869
fontSynthesis: string;
2857
2870
fontVariant: string;
2858
- /** @deprecated */
2859
2871
fontVariantAlternates: string;
2860
2872
fontVariantCaps: string;
2861
2873
fontVariantEastAsian: string;
@@ -2950,7 +2962,6 @@ interface CSSStyleDeclaration {
2950
2962
objectFit: string;
2951
2963
objectPosition: string;
2952
2964
offset: string;
2953
- offsetAnchor: string;
2954
2965
offsetDistance: string;
2955
2966
offsetPath: string;
2956
2967
offsetRotate: string;
@@ -2995,6 +3006,7 @@ interface CSSStyleDeclaration {
2995
3006
placeSelf: string;
2996
3007
pointerEvents: string;
2997
3008
position: string;
3009
+ printColorAdjust: string;
2998
3010
quotes: string;
2999
3011
resize: string;
3000
3012
right: string;
@@ -4488,6 +4500,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4488
4500
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
4489
4501
createEvent(eventInterface: "InputEvent"): InputEvent;
4490
4502
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
4503
+ createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
4504
+ createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
4491
4505
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
4492
4506
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
4493
4507
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -7699,6 +7713,7 @@ interface HTMLScriptElement extends HTMLElement {
7699
7713
declare var HTMLScriptElement: {
7700
7714
prototype: HTMLScriptElement;
7701
7715
new(): HTMLScriptElement;
7716
+ supports(type: string): boolean;
7702
7717
};
7703
7718
7704
7719
/** 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: {
9065
9080
new(): LockManager;
9066
9081
};
9067
9082
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
+
9068
9203
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
9069
9204
}
9070
9205
@@ -9786,6 +9921,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9786
9921
canShare(data?: ShareData): boolean;
9787
9922
getGamepads(): (Gamepad | null)[];
9788
9923
/** Available only in secure contexts. */
9924
+ requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9925
+ /** Available only in secure contexts. */
9789
9926
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9790
9927
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
9791
9928
/** Available only in secure contexts. */
@@ -9855,6 +9992,7 @@ interface NavigatorOnLine {
9855
9992
interface NavigatorPlugins {
9856
9993
/** @deprecated */
9857
9994
readonly mimeTypes: MimeTypeArray;
9995
+ readonly pdfViewerEnabled: boolean;
9858
9996
/** @deprecated */
9859
9997
readonly plugins: PluginArray;
9860
9998
/** @deprecated */
@@ -14396,13 +14534,6 @@ interface WEBGL_compressed_texture_etc1 {
14396
14534
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
14397
14535
}
14398
14536
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
-
14406
14537
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
14407
14538
interface WEBGL_compressed_texture_s3tc {
14408
14539
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -15905,7 +16036,6 @@ interface WebGLRenderingContextBase {
15905
16036
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
15906
16037
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
15907
16038
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
15908
- getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
15909
16039
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
15910
16040
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
15911
16041
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
@@ -18074,6 +18204,9 @@ type KeyType = "private" | "public" | "secret";
18074
18204
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18075
18205
type LineAlignSetting = "center" | "end" | "start";
18076
18206
type LockMode = "exclusive" | "shared";
18207
+ type MIDIPortConnectionState = "closed" | "open" | "pending";
18208
+ type MIDIPortDeviceState = "connected" | "disconnected";
18209
+ type MIDIPortType = "input" | "output";
18077
18210
type MediaDecodingType = "file" | "media-source" | "webrtc";
18078
18211
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
18079
18212
type MediaEncodingType = "record" | "webrtc";
0 commit comments