@@ -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;
@@ -5524,7 +5538,6 @@ interface GlobalEventHandlersEventMap {
5524
5538
"compositionstart": CompositionEvent;
5525
5539
"compositionupdate": CompositionEvent;
5526
5540
"contextmenu": MouseEvent;
5527
- "cuechange": Event;
5528
5541
"dblclick": MouseEvent;
5529
5542
"drag": DragEvent;
5530
5543
"dragend": DragEvent;
@@ -5642,7 +5655,6 @@ interface GlobalEventHandlers {
5642
5655
* @param ev The mouse event.
5643
5656
*/
5644
5657
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
5645
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5646
5658
/**
5647
5659
* Fires when the user double-clicks the object.
5648
5660
* @param ev The mouse event.
@@ -7699,6 +7711,7 @@ interface HTMLScriptElement extends HTMLElement {
7699
7711
declare var HTMLScriptElement: {
7700
7712
prototype: HTMLScriptElement;
7701
7713
new(): HTMLScriptElement;
7714
+ supports(type: string): boolean;
7702
7715
};
7703
7716
7704
7717
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
@@ -8446,9 +8459,7 @@ declare var IDBCursorWithValue: {
8446
8459
};
8447
8460
8448
8461
interface IDBDatabaseEventMap {
8449
- "abort": Event;
8450
8462
"close": Event;
8451
- "error": Event;
8452
8463
"versionchange": IDBVersionChangeEvent;
8453
8464
}
8454
8465
@@ -8458,9 +8469,7 @@ interface IDBDatabase extends EventTarget {
8458
8469
readonly name: string;
8459
8470
/** Returns a list of the names of object stores in the database. */
8460
8471
readonly objectStoreNames: DOMStringList;
8461
- onabort: ((this: IDBDatabase, ev: Event) => any) | null;
8462
8472
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
8463
- onerror: ((this: IDBDatabase, ev: Event) => any) | null;
8464
8473
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
8465
8474
/** Returns the version of the database. */
8466
8475
readonly version: number;
@@ -9065,6 +9074,126 @@ declare var LockManager: {
9065
9074
new(): LockManager;
9066
9075
};
9067
9076
9077
+ interface MIDIAccessEventMap {
9078
+ "statechange": Event;
9079
+ }
9080
+
9081
+ /** Available only in secure contexts. */
9082
+ interface MIDIAccess extends EventTarget {
9083
+ readonly inputs: MIDIInputMap;
9084
+ onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
9085
+ readonly outputs: MIDIOutputMap;
9086
+ readonly sysexEnabled: boolean;
9087
+ addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9088
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9089
+ removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9090
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9091
+ }
9092
+
9093
+ declare var MIDIAccess: {
9094
+ prototype: MIDIAccess;
9095
+ new(): MIDIAccess;
9096
+ };
9097
+
9098
+ /** Available only in secure contexts. */
9099
+ interface MIDIConnectionEvent extends Event {
9100
+ readonly port: MIDIPort;
9101
+ }
9102
+
9103
+ declare var MIDIConnectionEvent: {
9104
+ prototype: MIDIConnectionEvent;
9105
+ new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
9106
+ };
9107
+
9108
+ interface MIDIInputEventMap extends MIDIPortEventMap {
9109
+ "midimessage": Event;
9110
+ }
9111
+
9112
+ /** Available only in secure contexts. */
9113
+ interface MIDIInput extends MIDIPort {
9114
+ onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
9115
+ addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9116
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9117
+ removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9118
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9119
+ }
9120
+
9121
+ declare var MIDIInput: {
9122
+ prototype: MIDIInput;
9123
+ new(): MIDIInput;
9124
+ };
9125
+
9126
+ /** Available only in secure contexts. */
9127
+ interface MIDIInputMap {
9128
+ forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
9129
+ }
9130
+
9131
+ declare var MIDIInputMap: {
9132
+ prototype: MIDIInputMap;
9133
+ new(): MIDIInputMap;
9134
+ };
9135
+
9136
+ /** Available only in secure contexts. */
9137
+ interface MIDIMessageEvent extends Event {
9138
+ readonly data: Uint8Array;
9139
+ }
9140
+
9141
+ declare var MIDIMessageEvent: {
9142
+ prototype: MIDIMessageEvent;
9143
+ new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
9144
+ };
9145
+
9146
+ /** Available only in secure contexts. */
9147
+ interface MIDIOutput extends MIDIPort {
9148
+ send(data: number[], timestamp?: DOMHighResTimeStamp): void;
9149
+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9150
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9151
+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9152
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9153
+ }
9154
+
9155
+ declare var MIDIOutput: {
9156
+ prototype: MIDIOutput;
9157
+ new(): MIDIOutput;
9158
+ };
9159
+
9160
+ /** Available only in secure contexts. */
9161
+ interface MIDIOutputMap {
9162
+ forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
9163
+ }
9164
+
9165
+ declare var MIDIOutputMap: {
9166
+ prototype: MIDIOutputMap;
9167
+ new(): MIDIOutputMap;
9168
+ };
9169
+
9170
+ interface MIDIPortEventMap {
9171
+ "statechange": Event;
9172
+ }
9173
+
9174
+ /** Available only in secure contexts. */
9175
+ interface MIDIPort extends EventTarget {
9176
+ readonly connection: MIDIPortConnectionState;
9177
+ readonly id: string;
9178
+ readonly manufacturer: string | null;
9179
+ readonly name: string | null;
9180
+ onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
9181
+ readonly state: MIDIPortDeviceState;
9182
+ readonly type: MIDIPortType;
9183
+ readonly version: string | null;
9184
+ close(): Promise<MIDIPort>;
9185
+ open(): Promise<MIDIPort>;
9186
+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9187
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9188
+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9189
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9190
+ }
9191
+
9192
+ declare var MIDIPort: {
9193
+ prototype: MIDIPort;
9194
+ new(): MIDIPort;
9195
+ };
9196
+
9068
9197
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
9069
9198
}
9070
9199
@@ -9786,6 +9915,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9786
9915
canShare(data?: ShareData): boolean;
9787
9916
getGamepads(): (Gamepad | null)[];
9788
9917
/** Available only in secure contexts. */
9918
+ requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9919
+ /** Available only in secure contexts. */
9789
9920
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9790
9921
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
9791
9922
/** Available only in secure contexts. */
@@ -9855,6 +9986,7 @@ interface NavigatorOnLine {
9855
9986
interface NavigatorPlugins {
9856
9987
/** @deprecated */
9857
9988
readonly mimeTypes: MimeTypeArray;
9989
+ readonly pdfViewerEnabled: boolean;
9858
9990
/** @deprecated */
9859
9991
readonly plugins: PluginArray;
9860
9992
/** @deprecated */
@@ -14396,13 +14528,6 @@ interface WEBGL_compressed_texture_etc1 {
14396
14528
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
14397
14529
}
14398
14530
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
14531
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
14407
14532
interface WEBGL_compressed_texture_s3tc {
14408
14533
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -16613,8 +16738,6 @@ interface WindowEventHandlers {
16613
16738
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
16614
16739
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
16615
16740
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
16616
- ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
16617
- ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
16618
16741
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
16619
16742
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
16620
16743
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
@@ -16878,13 +17001,6 @@ interface XMLHttpRequestEventTargetEventMap {
16878
17001
}
16879
17002
16880
17003
interface XMLHttpRequestEventTarget extends EventTarget {
16881
- onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16882
- onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16883
- onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16884
- onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16885
- onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16886
- onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16887
- ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
16888
17004
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16889
17005
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16890
17006
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -17669,7 +17785,6 @@ declare var onclose: ((this: Window, ev: Event) => any) | null;
17669
17785
* @param ev The mouse event.
17670
17786
*/
17671
17787
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
17672
- declare var oncuechange: ((this: Window, ev: Event) => any) | null;
17673
17788
/**
17674
17789
* Fires when the user double-clicks the object.
17675
17790
* @param ev The mouse event.
@@ -17909,8 +18024,6 @@ declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
17909
18024
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
17910
18025
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
17911
18026
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
17912
- declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
17913
- declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
17914
18027
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
17915
18028
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
17916
18029
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
@@ -18074,6 +18187,9 @@ type KeyType = "private" | "public" | "secret";
18074
18187
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18075
18188
type LineAlignSetting = "center" | "end" | "start";
18076
18189
type LockMode = "exclusive" | "shared";
18190
+ type MIDIPortConnectionState = "closed" | "open" | "pending";
18191
+ type MIDIPortDeviceState = "connected" | "disconnected";
18192
+ type MIDIPortType = "input" | "output";
18077
18193
type MediaDecodingType = "file" | "media-source" | "webrtc";
18078
18194
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
18079
18195
type MediaEncodingType = "record" | "webrtc";
0 commit comments