@types/web 0.0.80 → 0.0.82
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 -8
- package/iterable.d.ts +14 -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.82 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.82.
|
package/index.d.ts
CHANGED
|
@@ -709,6 +709,19 @@ interface LockOptions {
|
|
|
709
709
|
steal?: boolean;
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
+
interface MIDIConnectionEventInit extends EventInit {
|
|
713
|
+
port?: MIDIPort;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
interface MIDIMessageEventInit extends EventInit {
|
|
717
|
+
data?: Uint8Array;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
interface MIDIOptions {
|
|
721
|
+
software?: boolean;
|
|
722
|
+
sysex?: boolean;
|
|
723
|
+
}
|
|
724
|
+
|
|
712
725
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
713
726
|
configuration?: MediaDecodingConfiguration;
|
|
714
727
|
}
|
|
@@ -823,7 +836,6 @@ interface MediaTrackCapabilities {
|
|
|
823
836
|
aspectRatio?: DoubleRange;
|
|
824
837
|
autoGainControl?: boolean[];
|
|
825
838
|
channelCount?: ULongRange;
|
|
826
|
-
cursor?: string[];
|
|
827
839
|
deviceId?: string;
|
|
828
840
|
displaySurface?: string;
|
|
829
841
|
echoCancellation?: boolean[];
|
|
@@ -831,10 +843,7 @@ interface MediaTrackCapabilities {
|
|
|
831
843
|
frameRate?: DoubleRange;
|
|
832
844
|
groupId?: string;
|
|
833
845
|
height?: ULongRange;
|
|
834
|
-
latency?: DoubleRange;
|
|
835
|
-
logicalSurface?: boolean;
|
|
836
846
|
noiseSuppression?: boolean[];
|
|
837
|
-
resizeMode?: string[];
|
|
838
847
|
sampleRate?: ULongRange;
|
|
839
848
|
sampleSize?: ULongRange;
|
|
840
849
|
width?: ULongRange;
|
|
@@ -845,16 +854,15 @@ interface MediaTrackConstraintSet {
|
|
|
845
854
|
autoGainControl?: ConstrainBoolean;
|
|
846
855
|
channelCount?: ConstrainULong;
|
|
847
856
|
deviceId?: ConstrainDOMString;
|
|
857
|
+
displaySurface?: ConstrainDOMString;
|
|
848
858
|
echoCancellation?: ConstrainBoolean;
|
|
849
859
|
facingMode?: ConstrainDOMString;
|
|
850
860
|
frameRate?: ConstrainDouble;
|
|
851
861
|
groupId?: ConstrainDOMString;
|
|
852
862
|
height?: ConstrainULong;
|
|
853
|
-
latency?: ConstrainDouble;
|
|
854
863
|
noiseSuppression?: ConstrainBoolean;
|
|
855
864
|
sampleRate?: ConstrainULong;
|
|
856
865
|
sampleSize?: ConstrainULong;
|
|
857
|
-
suppressLocalAudioPlayback?: ConstrainBoolean;
|
|
858
866
|
width?: ConstrainULong;
|
|
859
867
|
}
|
|
860
868
|
|
|
@@ -865,14 +873,15 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet {
|
|
|
865
873
|
interface MediaTrackSettings {
|
|
866
874
|
aspectRatio?: number;
|
|
867
875
|
autoGainControl?: boolean;
|
|
876
|
+
channelCount?: number;
|
|
868
877
|
deviceId?: string;
|
|
878
|
+
displaySurface?: string;
|
|
869
879
|
echoCancellation?: boolean;
|
|
870
880
|
facingMode?: string;
|
|
871
881
|
frameRate?: number;
|
|
872
882
|
groupId?: string;
|
|
873
883
|
height?: number;
|
|
874
884
|
noiseSuppression?: boolean;
|
|
875
|
-
restrictOwnAudio?: boolean;
|
|
876
885
|
sampleRate?: number;
|
|
877
886
|
sampleSize?: number;
|
|
878
887
|
width?: number;
|
|
@@ -881,7 +890,9 @@ interface MediaTrackSettings {
|
|
|
881
890
|
interface MediaTrackSupportedConstraints {
|
|
882
891
|
aspectRatio?: boolean;
|
|
883
892
|
autoGainControl?: boolean;
|
|
893
|
+
channelCount?: boolean;
|
|
884
894
|
deviceId?: boolean;
|
|
895
|
+
displaySurface?: boolean;
|
|
885
896
|
echoCancellation?: boolean;
|
|
886
897
|
facingMode?: boolean;
|
|
887
898
|
frameRate?: boolean;
|
|
@@ -890,7 +901,6 @@ interface MediaTrackSupportedConstraints {
|
|
|
890
901
|
noiseSuppression?: boolean;
|
|
891
902
|
sampleRate?: boolean;
|
|
892
903
|
sampleSize?: boolean;
|
|
893
|
-
suppressLocalAudioPlayback?: boolean;
|
|
894
904
|
width?: boolean;
|
|
895
905
|
}
|
|
896
906
|
|
|
@@ -2736,6 +2746,7 @@ interface CSSKeyframesRule extends CSSRule {
|
|
|
2736
2746
|
appendRule(rule: string): void;
|
|
2737
2747
|
deleteRule(select: string): void;
|
|
2738
2748
|
findRule(select: string): CSSKeyframeRule | null;
|
|
2749
|
+
[index: number]: CSSKeyframeRule;
|
|
2739
2750
|
}
|
|
2740
2751
|
|
|
2741
2752
|
declare var CSSKeyframesRule: {
|
|
@@ -4652,6 +4663,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4652
4663
|
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
|
|
4653
4664
|
createEvent(eventInterface: "InputEvent"): InputEvent;
|
|
4654
4665
|
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
|
|
4666
|
+
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
|
|
4667
|
+
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
|
|
4655
4668
|
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
|
|
4656
4669
|
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
|
|
4657
4670
|
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
|
|
@@ -9278,6 +9291,126 @@ declare var LockManager: {
|
|
|
9278
9291
|
new(): LockManager;
|
|
9279
9292
|
};
|
|
9280
9293
|
|
|
9294
|
+
interface MIDIAccessEventMap {
|
|
9295
|
+
"statechange": Event;
|
|
9296
|
+
}
|
|
9297
|
+
|
|
9298
|
+
/** Available only in secure contexts. */
|
|
9299
|
+
interface MIDIAccess extends EventTarget {
|
|
9300
|
+
readonly inputs: MIDIInputMap;
|
|
9301
|
+
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
|
|
9302
|
+
readonly outputs: MIDIOutputMap;
|
|
9303
|
+
readonly sysexEnabled: boolean;
|
|
9304
|
+
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9305
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9306
|
+
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9307
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9308
|
+
}
|
|
9309
|
+
|
|
9310
|
+
declare var MIDIAccess: {
|
|
9311
|
+
prototype: MIDIAccess;
|
|
9312
|
+
new(): MIDIAccess;
|
|
9313
|
+
};
|
|
9314
|
+
|
|
9315
|
+
/** Available only in secure contexts. */
|
|
9316
|
+
interface MIDIConnectionEvent extends Event {
|
|
9317
|
+
readonly port: MIDIPort;
|
|
9318
|
+
}
|
|
9319
|
+
|
|
9320
|
+
declare var MIDIConnectionEvent: {
|
|
9321
|
+
prototype: MIDIConnectionEvent;
|
|
9322
|
+
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
|
|
9323
|
+
};
|
|
9324
|
+
|
|
9325
|
+
interface MIDIInputEventMap extends MIDIPortEventMap {
|
|
9326
|
+
"midimessage": Event;
|
|
9327
|
+
}
|
|
9328
|
+
|
|
9329
|
+
/** Available only in secure contexts. */
|
|
9330
|
+
interface MIDIInput extends MIDIPort {
|
|
9331
|
+
onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
|
|
9332
|
+
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9333
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9334
|
+
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9335
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9336
|
+
}
|
|
9337
|
+
|
|
9338
|
+
declare var MIDIInput: {
|
|
9339
|
+
prototype: MIDIInput;
|
|
9340
|
+
new(): MIDIInput;
|
|
9341
|
+
};
|
|
9342
|
+
|
|
9343
|
+
/** Available only in secure contexts. */
|
|
9344
|
+
interface MIDIInputMap {
|
|
9345
|
+
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
|
|
9346
|
+
}
|
|
9347
|
+
|
|
9348
|
+
declare var MIDIInputMap: {
|
|
9349
|
+
prototype: MIDIInputMap;
|
|
9350
|
+
new(): MIDIInputMap;
|
|
9351
|
+
};
|
|
9352
|
+
|
|
9353
|
+
/** Available only in secure contexts. */
|
|
9354
|
+
interface MIDIMessageEvent extends Event {
|
|
9355
|
+
readonly data: Uint8Array;
|
|
9356
|
+
}
|
|
9357
|
+
|
|
9358
|
+
declare var MIDIMessageEvent: {
|
|
9359
|
+
prototype: MIDIMessageEvent;
|
|
9360
|
+
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
|
|
9361
|
+
};
|
|
9362
|
+
|
|
9363
|
+
/** Available only in secure contexts. */
|
|
9364
|
+
interface MIDIOutput extends MIDIPort {
|
|
9365
|
+
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
|
|
9366
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9367
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9368
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9369
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9372
|
+
declare var MIDIOutput: {
|
|
9373
|
+
prototype: MIDIOutput;
|
|
9374
|
+
new(): MIDIOutput;
|
|
9375
|
+
};
|
|
9376
|
+
|
|
9377
|
+
/** Available only in secure contexts. */
|
|
9378
|
+
interface MIDIOutputMap {
|
|
9379
|
+
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
|
|
9380
|
+
}
|
|
9381
|
+
|
|
9382
|
+
declare var MIDIOutputMap: {
|
|
9383
|
+
prototype: MIDIOutputMap;
|
|
9384
|
+
new(): MIDIOutputMap;
|
|
9385
|
+
};
|
|
9386
|
+
|
|
9387
|
+
interface MIDIPortEventMap {
|
|
9388
|
+
"statechange": Event;
|
|
9389
|
+
}
|
|
9390
|
+
|
|
9391
|
+
/** Available only in secure contexts. */
|
|
9392
|
+
interface MIDIPort extends EventTarget {
|
|
9393
|
+
readonly connection: MIDIPortConnectionState;
|
|
9394
|
+
readonly id: string;
|
|
9395
|
+
readonly manufacturer: string | null;
|
|
9396
|
+
readonly name: string | null;
|
|
9397
|
+
onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
|
|
9398
|
+
readonly state: MIDIPortDeviceState;
|
|
9399
|
+
readonly type: MIDIPortType;
|
|
9400
|
+
readonly version: string | null;
|
|
9401
|
+
close(): Promise<MIDIPort>;
|
|
9402
|
+
open(): Promise<MIDIPort>;
|
|
9403
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9404
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9405
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9406
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9409
|
+
declare var MIDIPort: {
|
|
9410
|
+
prototype: MIDIPort;
|
|
9411
|
+
new(): MIDIPort;
|
|
9412
|
+
};
|
|
9413
|
+
|
|
9281
9414
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
9282
9415
|
}
|
|
9283
9416
|
|
|
@@ -9990,6 +10123,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
|
|
|
9990
10123
|
canShare(data?: ShareData): boolean;
|
|
9991
10124
|
getGamepads(): (Gamepad | null)[];
|
|
9992
10125
|
/** Available only in secure contexts. */
|
|
10126
|
+
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
|
|
10127
|
+
/** Available only in secure contexts. */
|
|
9993
10128
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
9994
10129
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
9995
10130
|
/** Available only in secure contexts. */
|
|
@@ -18401,6 +18536,9 @@ type KeyType = "private" | "public" | "secret";
|
|
|
18401
18536
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
18402
18537
|
type LineAlignSetting = "center" | "end" | "start";
|
|
18403
18538
|
type LockMode = "exclusive" | "shared";
|
|
18539
|
+
type MIDIPortConnectionState = "closed" | "open" | "pending";
|
|
18540
|
+
type MIDIPortDeviceState = "connected" | "disconnected";
|
|
18541
|
+
type MIDIPortType = "input" | "output";
|
|
18404
18542
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
18405
18543
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
18406
18544
|
type MediaEncodingType = "record" | "webrtc";
|
package/iterable.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ interface BaseAudioContext {
|
|
|
14
14
|
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
interface CSSKeyframesRule {
|
|
18
|
+
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
interface CSSRuleList {
|
|
18
22
|
[Symbol.iterator](): IterableIterator<CSSRule>;
|
|
19
23
|
}
|
|
@@ -117,6 +121,16 @@ interface IDBObjectStore {
|
|
|
117
121
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
118
122
|
}
|
|
119
123
|
|
|
124
|
+
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
interface MIDIOutput {
|
|
128
|
+
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
|
|
132
|
+
}
|
|
133
|
+
|
|
120
134
|
interface MediaKeyStatusMap {
|
|
121
135
|
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
122
136
|
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|