@types/web 0.0.56 → 0.0.59
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 +154 -15
- package/iterable.d.ts +13 -3
- 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.59 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.59.
|
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,7 @@ 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;
|
|
1953
1967
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1954
1968
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1955
1969
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2805,7 +2819,6 @@ interface CSSStyleDeclaration {
|
|
|
2805
2819
|
clipPath: string;
|
|
2806
2820
|
clipRule: string;
|
|
2807
2821
|
color: string;
|
|
2808
|
-
colorAdjust: string;
|
|
2809
2822
|
colorInterpolation: string;
|
|
2810
2823
|
colorInterpolationFilters: string;
|
|
2811
2824
|
colorScheme: string;
|
|
@@ -2857,7 +2870,6 @@ interface CSSStyleDeclaration {
|
|
|
2857
2870
|
fontStyle: string;
|
|
2858
2871
|
fontSynthesis: string;
|
|
2859
2872
|
fontVariant: string;
|
|
2860
|
-
/** @deprecated */
|
|
2861
2873
|
fontVariantAlternates: string;
|
|
2862
2874
|
fontVariantCaps: string;
|
|
2863
2875
|
fontVariantEastAsian: string;
|
|
@@ -2952,7 +2964,6 @@ interface CSSStyleDeclaration {
|
|
|
2952
2964
|
objectFit: string;
|
|
2953
2965
|
objectPosition: string;
|
|
2954
2966
|
offset: string;
|
|
2955
|
-
offsetAnchor: string;
|
|
2956
2967
|
offsetDistance: string;
|
|
2957
2968
|
offsetPath: string;
|
|
2958
2969
|
offsetRotate: string;
|
|
@@ -2997,6 +3008,7 @@ interface CSSStyleDeclaration {
|
|
|
2997
3008
|
placeSelf: string;
|
|
2998
3009
|
pointerEvents: string;
|
|
2999
3010
|
position: string;
|
|
3011
|
+
printColorAdjust: string;
|
|
3000
3012
|
quotes: string;
|
|
3001
3013
|
resize: string;
|
|
3002
3014
|
right: string;
|
|
@@ -4490,6 +4502,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4490
4502
|
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
|
|
4491
4503
|
createEvent(eventInterface: "InputEvent"): InputEvent;
|
|
4492
4504
|
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
|
|
4505
|
+
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
|
|
4506
|
+
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
|
|
4493
4507
|
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
|
|
4494
4508
|
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
|
|
4495
4509
|
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
|
|
@@ -7701,6 +7715,7 @@ interface HTMLScriptElement extends HTMLElement {
|
|
|
7701
7715
|
declare var HTMLScriptElement: {
|
|
7702
7716
|
prototype: HTMLScriptElement;
|
|
7703
7717
|
new(): HTMLScriptElement;
|
|
7718
|
+
supports(type: string): boolean;
|
|
7704
7719
|
};
|
|
7705
7720
|
|
|
7706
7721
|
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
|
|
@@ -9067,6 +9082,126 @@ declare var LockManager: {
|
|
|
9067
9082
|
new(): LockManager;
|
|
9068
9083
|
};
|
|
9069
9084
|
|
|
9085
|
+
interface MIDIAccessEventMap {
|
|
9086
|
+
"statechange": Event;
|
|
9087
|
+
}
|
|
9088
|
+
|
|
9089
|
+
/** Available only in secure contexts. */
|
|
9090
|
+
interface MIDIAccess extends EventTarget {
|
|
9091
|
+
readonly inputs: MIDIInputMap;
|
|
9092
|
+
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
|
|
9093
|
+
readonly outputs: MIDIOutputMap;
|
|
9094
|
+
readonly sysexEnabled: boolean;
|
|
9095
|
+
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9096
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9097
|
+
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9098
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9099
|
+
}
|
|
9100
|
+
|
|
9101
|
+
declare var MIDIAccess: {
|
|
9102
|
+
prototype: MIDIAccess;
|
|
9103
|
+
new(): MIDIAccess;
|
|
9104
|
+
};
|
|
9105
|
+
|
|
9106
|
+
/** Available only in secure contexts. */
|
|
9107
|
+
interface MIDIConnectionEvent extends Event {
|
|
9108
|
+
readonly port: MIDIPort;
|
|
9109
|
+
}
|
|
9110
|
+
|
|
9111
|
+
declare var MIDIConnectionEvent: {
|
|
9112
|
+
prototype: MIDIConnectionEvent;
|
|
9113
|
+
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
|
|
9114
|
+
};
|
|
9115
|
+
|
|
9116
|
+
interface MIDIInputEventMap extends MIDIPortEventMap {
|
|
9117
|
+
"midimessage": Event;
|
|
9118
|
+
}
|
|
9119
|
+
|
|
9120
|
+
/** Available only in secure contexts. */
|
|
9121
|
+
interface MIDIInput extends MIDIPort {
|
|
9122
|
+
onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
|
|
9123
|
+
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9124
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9125
|
+
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9126
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9127
|
+
}
|
|
9128
|
+
|
|
9129
|
+
declare var MIDIInput: {
|
|
9130
|
+
prototype: MIDIInput;
|
|
9131
|
+
new(): MIDIInput;
|
|
9132
|
+
};
|
|
9133
|
+
|
|
9134
|
+
/** Available only in secure contexts. */
|
|
9135
|
+
interface MIDIInputMap {
|
|
9136
|
+
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
|
|
9137
|
+
}
|
|
9138
|
+
|
|
9139
|
+
declare var MIDIInputMap: {
|
|
9140
|
+
prototype: MIDIInputMap;
|
|
9141
|
+
new(): MIDIInputMap;
|
|
9142
|
+
};
|
|
9143
|
+
|
|
9144
|
+
/** Available only in secure contexts. */
|
|
9145
|
+
interface MIDIMessageEvent extends Event {
|
|
9146
|
+
readonly data: Uint8Array;
|
|
9147
|
+
}
|
|
9148
|
+
|
|
9149
|
+
declare var MIDIMessageEvent: {
|
|
9150
|
+
prototype: MIDIMessageEvent;
|
|
9151
|
+
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
|
|
9152
|
+
};
|
|
9153
|
+
|
|
9154
|
+
/** Available only in secure contexts. */
|
|
9155
|
+
interface MIDIOutput extends MIDIPort {
|
|
9156
|
+
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
|
|
9157
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9158
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9159
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9160
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9161
|
+
}
|
|
9162
|
+
|
|
9163
|
+
declare var MIDIOutput: {
|
|
9164
|
+
prototype: MIDIOutput;
|
|
9165
|
+
new(): MIDIOutput;
|
|
9166
|
+
};
|
|
9167
|
+
|
|
9168
|
+
/** Available only in secure contexts. */
|
|
9169
|
+
interface MIDIOutputMap {
|
|
9170
|
+
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
|
|
9171
|
+
}
|
|
9172
|
+
|
|
9173
|
+
declare var MIDIOutputMap: {
|
|
9174
|
+
prototype: MIDIOutputMap;
|
|
9175
|
+
new(): MIDIOutputMap;
|
|
9176
|
+
};
|
|
9177
|
+
|
|
9178
|
+
interface MIDIPortEventMap {
|
|
9179
|
+
"statechange": Event;
|
|
9180
|
+
}
|
|
9181
|
+
|
|
9182
|
+
/** Available only in secure contexts. */
|
|
9183
|
+
interface MIDIPort extends EventTarget {
|
|
9184
|
+
readonly connection: MIDIPortConnectionState;
|
|
9185
|
+
readonly id: string;
|
|
9186
|
+
readonly manufacturer: string | null;
|
|
9187
|
+
readonly name: string | null;
|
|
9188
|
+
onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
|
|
9189
|
+
readonly state: MIDIPortDeviceState;
|
|
9190
|
+
readonly type: MIDIPortType;
|
|
9191
|
+
readonly version: string | null;
|
|
9192
|
+
close(): Promise<MIDIPort>;
|
|
9193
|
+
open(): Promise<MIDIPort>;
|
|
9194
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9195
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9196
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9197
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9198
|
+
}
|
|
9199
|
+
|
|
9200
|
+
declare var MIDIPort: {
|
|
9201
|
+
prototype: MIDIPort;
|
|
9202
|
+
new(): MIDIPort;
|
|
9203
|
+
};
|
|
9204
|
+
|
|
9070
9205
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
9071
9206
|
}
|
|
9072
9207
|
|
|
@@ -9769,7 +9904,7 @@ declare var NavigationPreloadManager: {
|
|
|
9769
9904
|
};
|
|
9770
9905
|
|
|
9771
9906
|
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
|
9772
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9907
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9773
9908
|
/** Available only in secure contexts. */
|
|
9774
9909
|
readonly clipboard: Clipboard;
|
|
9775
9910
|
/** Available only in secure contexts. */
|
|
@@ -9788,6 +9923,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
|
|
|
9788
9923
|
canShare(data?: ShareData): boolean;
|
|
9789
9924
|
getGamepads(): (Gamepad | null)[];
|
|
9790
9925
|
/** Available only in secure contexts. */
|
|
9926
|
+
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
|
|
9927
|
+
/** Available only in secure contexts. */
|
|
9791
9928
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
9792
9929
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
9793
9930
|
/** Available only in secure contexts. */
|
|
@@ -9841,6 +9978,11 @@ interface NavigatorLanguage {
|
|
|
9841
9978
|
readonly languages: ReadonlyArray<string>;
|
|
9842
9979
|
}
|
|
9843
9980
|
|
|
9981
|
+
/** Available only in secure contexts. */
|
|
9982
|
+
interface NavigatorLocks {
|
|
9983
|
+
readonly locks: LockManager;
|
|
9984
|
+
}
|
|
9985
|
+
|
|
9844
9986
|
interface NavigatorNetworkInformation {
|
|
9845
9987
|
readonly connection: NetworkInformation;
|
|
9846
9988
|
}
|
|
@@ -9852,6 +9994,7 @@ interface NavigatorOnLine {
|
|
|
9852
9994
|
interface NavigatorPlugins {
|
|
9853
9995
|
/** @deprecated */
|
|
9854
9996
|
readonly mimeTypes: MimeTypeArray;
|
|
9997
|
+
readonly pdfViewerEnabled: boolean;
|
|
9855
9998
|
/** @deprecated */
|
|
9856
9999
|
readonly plugins: PluginArray;
|
|
9857
10000
|
/** @deprecated */
|
|
@@ -13370,6 +13513,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
13370
13513
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
13371
13514
|
readonly active: ServiceWorker | null;
|
|
13372
13515
|
readonly installing: ServiceWorker | null;
|
|
13516
|
+
readonly navigationPreload: NavigationPreloadManager;
|
|
13373
13517
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
13374
13518
|
readonly pushManager: PushManager;
|
|
13375
13519
|
readonly scope: string;
|
|
@@ -13763,10 +13907,10 @@ interface SubtleCrypto {
|
|
|
13763
13907
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
13764
13908
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
13765
13909
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
13766
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
13767
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
13910
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
13911
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13768
13912
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
13769
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
13913
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13770
13914
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
13771
13915
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13772
13916
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
@@ -14392,13 +14536,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
14392
14536
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
14393
14537
|
}
|
|
14394
14538
|
|
|
14395
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
14396
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
14397
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
14398
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
14399
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
14400
|
-
}
|
|
14401
|
-
|
|
14402
14539
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
14403
14540
|
interface WEBGL_compressed_texture_s3tc {
|
|
14404
14541
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -15901,7 +16038,6 @@ interface WebGLRenderingContextBase {
|
|
|
15901
16038
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
15902
16039
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
15903
16040
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
15904
|
-
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
15905
16041
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
15906
16042
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
15907
16043
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -18070,6 +18206,9 @@ type KeyType = "private" | "public" | "secret";
|
|
|
18070
18206
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
18071
18207
|
type LineAlignSetting = "center" | "end" | "start";
|
|
18072
18208
|
type LockMode = "exclusive" | "shared";
|
|
18209
|
+
type MIDIPortConnectionState = "closed" | "open" | "pending";
|
|
18210
|
+
type MIDIPortDeviceState = "connected" | "disconnected";
|
|
18211
|
+
type MIDIPortType = "input" | "output";
|
|
18073
18212
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
18074
18213
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
18075
18214
|
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]>;
|
|
@@ -216,10 +226,10 @@ interface StyleSheetList {
|
|
|
216
226
|
|
|
217
227
|
interface SubtleCrypto {
|
|
218
228
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
219
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
220
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
229
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
230
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
221
231
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
222
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
232
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
223
233
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
224
234
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
225
235
|
}
|