@types/web 0.0.81 → 0.0.83
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 +147 -1
- 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.83 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.83.
|
package/index.d.ts
CHANGED
|
@@ -180,6 +180,11 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
|
|
|
180
180
|
numberOfOutputs?: number;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
interface CheckVisibilityOptions {
|
|
184
|
+
checkOpacity?: boolean;
|
|
185
|
+
checkVisibilityCSS?: boolean;
|
|
186
|
+
}
|
|
187
|
+
|
|
183
188
|
interface ClientQueryOptions {
|
|
184
189
|
includeUncontrolled?: boolean;
|
|
185
190
|
type?: ClientTypes;
|
|
@@ -709,6 +714,19 @@ interface LockOptions {
|
|
|
709
714
|
steal?: boolean;
|
|
710
715
|
}
|
|
711
716
|
|
|
717
|
+
interface MIDIConnectionEventInit extends EventInit {
|
|
718
|
+
port?: MIDIPort;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
interface MIDIMessageEventInit extends EventInit {
|
|
722
|
+
data?: Uint8Array;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
interface MIDIOptions {
|
|
726
|
+
software?: boolean;
|
|
727
|
+
sysex?: boolean;
|
|
728
|
+
}
|
|
729
|
+
|
|
712
730
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
713
731
|
configuration?: MediaDecodingConfiguration;
|
|
714
732
|
}
|
|
@@ -4650,6 +4668,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4650
4668
|
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
|
|
4651
4669
|
createEvent(eventInterface: "InputEvent"): InputEvent;
|
|
4652
4670
|
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
|
|
4671
|
+
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
|
|
4672
|
+
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
|
|
4653
4673
|
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
|
|
4654
4674
|
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
|
|
4655
4675
|
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
|
|
@@ -5031,6 +5051,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
|
|
5031
5051
|
readonly tagName: string;
|
|
5032
5052
|
/** Creates a shadow root for element and returns it. */
|
|
5033
5053
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
5054
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
5034
5055
|
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
|
|
5035
5056
|
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
5036
5057
|
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
@@ -7098,7 +7119,7 @@ interface HTMLInputElement extends HTMLElement {
|
|
|
7098
7119
|
indeterminate: boolean;
|
|
7099
7120
|
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
7100
7121
|
/** Specifies the ID of a pre-defined datalist of options for an input element. */
|
|
7101
|
-
readonly list:
|
|
7122
|
+
readonly list: HTMLDataListElement | null;
|
|
7102
7123
|
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
|
|
7103
7124
|
max: string;
|
|
7104
7125
|
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
|
|
@@ -9276,6 +9297,126 @@ declare var LockManager: {
|
|
|
9276
9297
|
new(): LockManager;
|
|
9277
9298
|
};
|
|
9278
9299
|
|
|
9300
|
+
interface MIDIAccessEventMap {
|
|
9301
|
+
"statechange": Event;
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9304
|
+
/** Available only in secure contexts. */
|
|
9305
|
+
interface MIDIAccess extends EventTarget {
|
|
9306
|
+
readonly inputs: MIDIInputMap;
|
|
9307
|
+
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
|
|
9308
|
+
readonly outputs: MIDIOutputMap;
|
|
9309
|
+
readonly sysexEnabled: boolean;
|
|
9310
|
+
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9311
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9312
|
+
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9313
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9314
|
+
}
|
|
9315
|
+
|
|
9316
|
+
declare var MIDIAccess: {
|
|
9317
|
+
prototype: MIDIAccess;
|
|
9318
|
+
new(): MIDIAccess;
|
|
9319
|
+
};
|
|
9320
|
+
|
|
9321
|
+
/** Available only in secure contexts. */
|
|
9322
|
+
interface MIDIConnectionEvent extends Event {
|
|
9323
|
+
readonly port: MIDIPort;
|
|
9324
|
+
}
|
|
9325
|
+
|
|
9326
|
+
declare var MIDIConnectionEvent: {
|
|
9327
|
+
prototype: MIDIConnectionEvent;
|
|
9328
|
+
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
|
|
9329
|
+
};
|
|
9330
|
+
|
|
9331
|
+
interface MIDIInputEventMap extends MIDIPortEventMap {
|
|
9332
|
+
"midimessage": Event;
|
|
9333
|
+
}
|
|
9334
|
+
|
|
9335
|
+
/** Available only in secure contexts. */
|
|
9336
|
+
interface MIDIInput extends MIDIPort {
|
|
9337
|
+
onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
|
|
9338
|
+
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9339
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9340
|
+
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9341
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9342
|
+
}
|
|
9343
|
+
|
|
9344
|
+
declare var MIDIInput: {
|
|
9345
|
+
prototype: MIDIInput;
|
|
9346
|
+
new(): MIDIInput;
|
|
9347
|
+
};
|
|
9348
|
+
|
|
9349
|
+
/** Available only in secure contexts. */
|
|
9350
|
+
interface MIDIInputMap {
|
|
9351
|
+
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
|
|
9352
|
+
}
|
|
9353
|
+
|
|
9354
|
+
declare var MIDIInputMap: {
|
|
9355
|
+
prototype: MIDIInputMap;
|
|
9356
|
+
new(): MIDIInputMap;
|
|
9357
|
+
};
|
|
9358
|
+
|
|
9359
|
+
/** Available only in secure contexts. */
|
|
9360
|
+
interface MIDIMessageEvent extends Event {
|
|
9361
|
+
readonly data: Uint8Array;
|
|
9362
|
+
}
|
|
9363
|
+
|
|
9364
|
+
declare var MIDIMessageEvent: {
|
|
9365
|
+
prototype: MIDIMessageEvent;
|
|
9366
|
+
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
|
|
9367
|
+
};
|
|
9368
|
+
|
|
9369
|
+
/** Available only in secure contexts. */
|
|
9370
|
+
interface MIDIOutput extends MIDIPort {
|
|
9371
|
+
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
|
|
9372
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9373
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9374
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9375
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9376
|
+
}
|
|
9377
|
+
|
|
9378
|
+
declare var MIDIOutput: {
|
|
9379
|
+
prototype: MIDIOutput;
|
|
9380
|
+
new(): MIDIOutput;
|
|
9381
|
+
};
|
|
9382
|
+
|
|
9383
|
+
/** Available only in secure contexts. */
|
|
9384
|
+
interface MIDIOutputMap {
|
|
9385
|
+
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
|
|
9386
|
+
}
|
|
9387
|
+
|
|
9388
|
+
declare var MIDIOutputMap: {
|
|
9389
|
+
prototype: MIDIOutputMap;
|
|
9390
|
+
new(): MIDIOutputMap;
|
|
9391
|
+
};
|
|
9392
|
+
|
|
9393
|
+
interface MIDIPortEventMap {
|
|
9394
|
+
"statechange": Event;
|
|
9395
|
+
}
|
|
9396
|
+
|
|
9397
|
+
/** Available only in secure contexts. */
|
|
9398
|
+
interface MIDIPort extends EventTarget {
|
|
9399
|
+
readonly connection: MIDIPortConnectionState;
|
|
9400
|
+
readonly id: string;
|
|
9401
|
+
readonly manufacturer: string | null;
|
|
9402
|
+
readonly name: string | null;
|
|
9403
|
+
onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
|
|
9404
|
+
readonly state: MIDIPortDeviceState;
|
|
9405
|
+
readonly type: MIDIPortType;
|
|
9406
|
+
readonly version: string | null;
|
|
9407
|
+
close(): Promise<MIDIPort>;
|
|
9408
|
+
open(): Promise<MIDIPort>;
|
|
9409
|
+
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9410
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9411
|
+
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9412
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9413
|
+
}
|
|
9414
|
+
|
|
9415
|
+
declare var MIDIPort: {
|
|
9416
|
+
prototype: MIDIPort;
|
|
9417
|
+
new(): MIDIPort;
|
|
9418
|
+
};
|
|
9419
|
+
|
|
9279
9420
|
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
9280
9421
|
}
|
|
9281
9422
|
|
|
@@ -9988,6 +10129,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
|
|
|
9988
10129
|
canShare(data?: ShareData): boolean;
|
|
9989
10130
|
getGamepads(): (Gamepad | null)[];
|
|
9990
10131
|
/** Available only in secure contexts. */
|
|
10132
|
+
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
|
|
10133
|
+
/** Available only in secure contexts. */
|
|
9991
10134
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
9992
10135
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
9993
10136
|
/** Available only in secure contexts. */
|
|
@@ -18399,6 +18542,9 @@ type KeyType = "private" | "public" | "secret";
|
|
|
18399
18542
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
18400
18543
|
type LineAlignSetting = "center" | "end" | "start";
|
|
18401
18544
|
type LockMode = "exclusive" | "shared";
|
|
18545
|
+
type MIDIPortConnectionState = "closed" | "open" | "pending";
|
|
18546
|
+
type MIDIPortDeviceState = "connected" | "disconnected";
|
|
18547
|
+
type MIDIPortType = "input" | "output";
|
|
18402
18548
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
18403
18549
|
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
|
18404
18550
|
type MediaEncodingType = "record" | "webrtc";
|
package/iterable.d.ts
CHANGED
|
@@ -121,6 +121,16 @@ interface IDBObjectStore {
|
|
|
121
121
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
122
122
|
}
|
|
123
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
|
+
|
|
124
134
|
interface MediaKeyStatusMap {
|
|
125
135
|
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
|
|
126
136
|
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
|