@types/web 0.0.57 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +146 -11
- package/iterable.d.ts +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.60 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.60.
|
package/index.d.ts
CHANGED
|
@@ -703,6 +703,19 @@ interface LockOptions {
|
|
|
703
703
|
steal?: boolean;
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
+
interface MIDIConnectionEventInit extends EventInit {
|
|
707
|
+
port?: MIDIPort;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
interface MIDIMessageEventInit extends EventInit {
|
|
711
|
+
data?: Uint8Array;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
interface MIDIOptions {
|
|
715
|
+
software?: boolean;
|
|
716
|
+
sysex?: boolean;
|
|
717
|
+
}
|
|
718
|
+
|
|
706
719
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
707
720
|
configuration?: MediaDecodingConfiguration;
|
|
708
721
|
}
|
|
@@ -1950,6 +1963,8 @@ interface AbortSignal extends EventTarget {
|
|
|
1950
1963
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
1951
1964
|
readonly aborted: boolean;
|
|
1952
1965
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
1966
|
+
readonly reason: any;
|
|
1967
|
+
throwIfAborted(): void;
|
|
1953
1968
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1954
1969
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1955
1970
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2805,7 +2820,6 @@ interface CSSStyleDeclaration {
|
|
|
2805
2820
|
clipPath: string;
|
|
2806
2821
|
clipRule: string;
|
|
2807
2822
|
color: string;
|
|
2808
|
-
colorAdjust: string;
|
|
2809
2823
|
colorInterpolation: string;
|
|
2810
2824
|
colorInterpolationFilters: string;
|
|
2811
2825
|
colorScheme: string;
|
|
@@ -2857,7 +2871,6 @@ interface CSSStyleDeclaration {
|
|
|
2857
2871
|
fontStyle: string;
|
|
2858
2872
|
fontSynthesis: string;
|
|
2859
2873
|
fontVariant: string;
|
|
2860
|
-
/** @deprecated */
|
|
2861
2874
|
fontVariantAlternates: string;
|
|
2862
2875
|
fontVariantCaps: string;
|
|
2863
2876
|
fontVariantEastAsian: string;
|
|
@@ -2952,7 +2965,6 @@ interface CSSStyleDeclaration {
|
|
|
2952
2965
|
objectFit: string;
|
|
2953
2966
|
objectPosition: string;
|
|
2954
2967
|
offset: string;
|
|
2955
|
-
offsetAnchor: string;
|
|
2956
2968
|
offsetDistance: string;
|
|
2957
2969
|
offsetPath: string;
|
|
2958
2970
|
offsetRotate: string;
|
|
@@ -2997,6 +3009,7 @@ interface CSSStyleDeclaration {
|
|
|
2997
3009
|
placeSelf: string;
|
|
2998
3010
|
pointerEvents: string;
|
|
2999
3011
|
position: string;
|
|
3012
|
+
printColorAdjust: string;
|
|
3000
3013
|
quotes: string;
|
|
3001
3014
|
resize: string;
|
|
3002
3015
|
right: string;
|
|
@@ -4490,6 +4503,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4490
4503
|
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
|
|
4491
4504
|
createEvent(eventInterface: "InputEvent"): InputEvent;
|
|
4492
4505
|
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
|
|
4506
|
+
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
|
|
4507
|
+
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
|
|
4493
4508
|
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
|
|
4494
4509
|
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
|
|
4495
4510
|
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
|
|
@@ -7701,6 +7716,7 @@ interface HTMLScriptElement extends HTMLElement {
|
|
|
7701
7716
|
declare var HTMLScriptElement: {
|
|
7702
7717
|
prototype: HTMLScriptElement;
|
|
7703
7718
|
new(): HTMLScriptElement;
|
|
7719
|
+
supports(type: string): boolean;
|
|
7704
7720
|
};
|
|
7705
7721
|
|
|
7706
7722
|
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
|
|
@@ -9067,6 +9083,126 @@ declare var LockManager: {
|
|
|
9067
9083
|
new(): LockManager;
|
|
9068
9084
|
};
|
|
9069
9085
|
|
|
9086
|
+
interface MIDIAccessEventMap {
|
|
9087
|
+
"statechange": Event;
|
|
9088
|
+
}
|
|
9089
|
+
|
|
9090
|
+
/** Available only in secure contexts. */
|
|
9091
|
+
interface MIDIAccess extends EventTarget {
|
|
9092
|
+
readonly inputs: MIDIInputMap;
|
|
9093
|
+
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
|
|
9094
|
+
readonly outputs: MIDIOutputMap;
|
|
9095
|
+
readonly sysexEnabled: boolean;
|
|
9096
|
+
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9097
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9098
|
+
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9099
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9100
|
+
}
|
|
9101
|
+
|
|
9102
|
+
declare var MIDIAccess: {
|
|
9103
|
+
prototype: MIDIAccess;
|
|
9104
|
+
new(): MIDIAccess;
|
|
9105
|
+
};
|
|
9106
|
+
|
|
9107
|
+
/** Available only in secure contexts. */
|
|
9108
|
+
interface MIDIConnectionEvent extends Event {
|
|
9109
|
+
readonly port: MIDIPort;
|
|
9110
|
+
}
|
|
9111
|
+
|
|
9112
|
+
declare var MIDIConnectionEvent: {
|
|
9113
|
+
prototype: MIDIConnectionEvent;
|
|
9114
|
+
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
|
|
9115
|
+
};
|
|
9116
|
+
|
|
9117
|
+
interface MIDIInputEventMap extends MIDIPortEventMap {
|
|
9118
|
+
"midimessage": Event;
|
|
9119
|
+
}
|
|
9120
|
+
|
|
9121
|
+
/** Available only in secure contexts. */
|
|
9122
|
+
interface MIDIInput extends MIDIPort {
|
|
9123
|
+
onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
|
|
9124
|
+
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9125
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9126
|
+
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9127
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9128
|
+
}
|
|
9129
|
+
|
|
9130
|
+
declare var MIDIInput: {
|
|
9131
|
+
prototype: MIDIInput;
|
|
9132
|
+
new(): MIDIInput;
|
|
9133
|
+
};
|
|
9134
|
+
|
|
9135
|
+
/** Available only in secure contexts. */
|
|
9136
|
+
interface MIDIInputMap {
|
|
9137
|
+
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
|
|
9138
|
+
}
|
|
9139
|
+
|
|
9140
|
+
declare var MIDIInputMap: {
|
|
9141
|
+
prototype: MIDIInputMap;
|
|
9142
|
+
new(): MIDIInputMap;
|
|
9143
|
+
};
|
|
9144
|
+
|
|
9145
|
+
/** Available only in secure contexts. */
|
|
9146
|
+
interface MIDIMessageEvent extends Event {
|
|
9147
|
+
readonly data: Uint8Array;
|
|
9148
|
+
}
|
|
9149
|
+
|
|
9150
|
+
declare var MIDIMessageEvent: {
|
|
9151
|
+
prototype: MIDIMessageEvent;
|
|
9152
|
+
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
|
|
9153
|
+
};
|
|
9154
|
+
|
|
9155
|
+
/** Available only in secure contexts. */
|
|
9156
|
+
interface MIDIOutput extends MIDIPort {
|
|
9157
|
+
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
|
|
9158
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9159
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9160
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9161
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9162
|
+
}
|
|
9163
|
+
|
|
9164
|
+
declare var MIDIOutput: {
|
|
9165
|
+
prototype: MIDIOutput;
|
|
9166
|
+
new(): MIDIOutput;
|
|
9167
|
+
};
|
|
9168
|
+
|
|
9169
|
+
/** Available only in secure contexts. */
|
|
9170
|
+
interface MIDIOutputMap {
|
|
9171
|
+
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
|
|
9172
|
+
}
|
|
9173
|
+
|
|
9174
|
+
declare var MIDIOutputMap: {
|
|
9175
|
+
prototype: MIDIOutputMap;
|
|
9176
|
+
new(): MIDIOutputMap;
|
|
9177
|
+
};
|
|
9178
|
+
|
|
9179
|
+
interface MIDIPortEventMap {
|
|
9180
|
+
"statechange": Event;
|
|
9181
|
+
}
|
|
9182
|
+
|
|
9183
|
+
/** Available only in secure contexts. */
|
|
9184
|
+
interface MIDIPort extends EventTarget {
|
|
9185
|
+
readonly connection: MIDIPortConnectionState;
|
|
9186
|
+
readonly id: string;
|
|
9187
|
+
readonly manufacturer: string | null;
|
|
9188
|
+
readonly name: string | null;
|
|
9189
|
+
onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
|
|
9190
|
+
readonly state: MIDIPortDeviceState;
|
|
9191
|
+
readonly type: MIDIPortType;
|
|
9192
|
+
readonly version: string | null;
|
|
9193
|
+
close(): Promise<MIDIPort>;
|
|
9194
|
+
open(): Promise<MIDIPort>;
|
|
9195
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9196
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9197
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9198
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9199
|
+
}
|
|
9200
|
+
|
|
9201
|
+
declare var MIDIPort: {
|
|
9202
|
+
prototype: MIDIPort;
|
|
9203
|
+
new(): MIDIPort;
|
|
9204
|
+
};
|
|
9205
|
+
|
|
9070
9206
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
9071
9207
|
}
|
|
9072
9208
|
|
|
@@ -9788,6 +9924,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
|
|
|
9788
9924
|
canShare(data?: ShareData): boolean;
|
|
9789
9925
|
getGamepads(): (Gamepad | null)[];
|
|
9790
9926
|
/** Available only in secure contexts. */
|
|
9927
|
+
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
|
|
9928
|
+
/** Available only in secure contexts. */
|
|
9791
9929
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
9792
9930
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
9793
9931
|
/** Available only in secure contexts. */
|
|
@@ -9857,6 +9995,7 @@ interface NavigatorOnLine {
|
|
|
9857
9995
|
interface NavigatorPlugins {
|
|
9858
9996
|
/** @deprecated */
|
|
9859
9997
|
readonly mimeTypes: MimeTypeArray;
|
|
9998
|
+
readonly pdfViewerEnabled: boolean;
|
|
9860
9999
|
/** @deprecated */
|
|
9861
10000
|
readonly plugins: PluginArray;
|
|
9862
10001
|
/** @deprecated */
|
|
@@ -13375,6 +13514,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
13375
13514
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
13376
13515
|
readonly active: ServiceWorker | null;
|
|
13377
13516
|
readonly installing: ServiceWorker | null;
|
|
13517
|
+
readonly navigationPreload: NavigationPreloadManager;
|
|
13378
13518
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
13379
13519
|
readonly pushManager: PushManager;
|
|
13380
13520
|
readonly scope: string;
|
|
@@ -14397,13 +14537,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
14397
14537
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
14398
14538
|
}
|
|
14399
14539
|
|
|
14400
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
14401
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
14402
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
14403
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
14404
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
14405
|
-
}
|
|
14406
|
-
|
|
14407
14540
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
14408
14541
|
interface WEBGL_compressed_texture_s3tc {
|
|
14409
14542
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -15906,7 +16039,6 @@ interface WebGLRenderingContextBase {
|
|
|
15906
16039
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
15907
16040
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
15908
16041
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
15909
|
-
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
15910
16042
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
15911
16043
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
15912
16044
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -18075,6 +18207,9 @@ type KeyType = "private" | "public" | "secret";
|
|
|
18075
18207
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
18076
18208
|
type LineAlignSetting = "center" | "end" | "start";
|
|
18077
18209
|
type LockMode = "exclusive" | "shared";
|
|
18210
|
+
type MIDIPortConnectionState = "closed" | "open" | "pending";
|
|
18211
|
+
type MIDIPortDeviceState = "connected" | "disconnected";
|
|
18212
|
+
type MIDIPortType = "input" | "output";
|
|
18078
18213
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
18079
18214
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
18080
18215
|
type MediaEncodingType = "record" | "webrtc";
|
package/iterable.d.ts
CHANGED
|
@@ -113,6 +113,16 @@ interface IDBObjectStore {
|
|
|
113
113
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface MIDIOutput {
|
|
120
|
+
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
|
|
124
|
+
}
|
|
125
|
+
|
|
116
126
|
interface MediaKeyStatusMap {
|
|
117
127
|
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
118
128
|
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|