@types/web 0.0.63 → 0.0.64

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 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.63 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.63.
50
+ You can read what changed in version 0.0.64 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.64.
package/index.d.ts CHANGED
@@ -572,6 +572,10 @@ interface IDBObjectStoreParameters {
572
572
  keyPath?: string | string[] | null;
573
573
  }
574
574
 
575
+ interface IDBTransactionOptions {
576
+ durability?: IDBTransactionDurability;
577
+ }
578
+
575
579
  interface IDBVersionChangeEventInit extends EventInit {
576
580
  newVersion?: number | null;
577
581
  oldVersion?: number;
@@ -703,19 +707,6 @@ interface LockOptions {
703
707
  steal?: boolean;
704
708
  }
705
709
 
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
-
719
710
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
720
711
  configuration?: MediaDecodingConfiguration;
721
712
  }
@@ -4504,8 +4495,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4504
4495
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
4505
4496
  createEvent(eventInterface: "InputEvent"): InputEvent;
4506
4497
  createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
4507
- createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
4508
- createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
4509
4498
  createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
4510
4499
  createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
4511
4500
  createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -6326,6 +6315,7 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
6326
6315
  dir: string;
6327
6316
  draggable: boolean;
6328
6317
  hidden: boolean;
6318
+ inert: boolean;
6329
6319
  innerText: string;
6330
6320
  lang: string;
6331
6321
  readonly offsetHeight: number;
@@ -6989,6 +6979,7 @@ interface HTMLInputElement extends HTMLElement {
6989
6979
  * @param direction The direction in which the selection is performed.
6990
6980
  */
6991
6981
  setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
6982
+ showPicker(): void;
6992
6983
  /**
6993
6984
  * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
6994
6985
  * @param n Value to decrement the value by.
@@ -7216,6 +7207,7 @@ interface HTMLMediaElement extends HTMLElement {
7216
7207
  readonly played: TimeRanges;
7217
7208
  /** Gets or sets a value indicating what data should be preloaded, if any. */
7218
7209
  preload: "none" | "metadata" | "auto" | "";
7210
+ preservesPitch: boolean;
7219
7211
  readonly readyState: number;
7220
7212
  readonly remote: RemotePlayback;
7221
7213
  /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
@@ -7582,16 +7574,25 @@ declare var HTMLParagraphElement: {
7582
7574
  new(): HTMLParagraphElement;
7583
7575
  };
7584
7576
 
7585
- /** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
7577
+ /**
7578
+ * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
7579
+ * @deprecated
7580
+ */
7586
7581
  interface HTMLParamElement extends HTMLElement {
7587
- /** Sets or retrieves the name of an input parameter for an element. */
7582
+ /**
7583
+ * Sets or retrieves the name of an input parameter for an element.
7584
+ * @deprecated
7585
+ */
7588
7586
  name: string;
7589
7587
  /**
7590
7588
  * Sets or retrieves the content type of the resource designated by the value attribute.
7591
7589
  * @deprecated
7592
7590
  */
7593
7591
  type: string;
7594
- /** Sets or retrieves the value of an input parameter for an element. */
7592
+ /**
7593
+ * Sets or retrieves the value of an input parameter for an element.
7594
+ * @deprecated
7595
+ */
7595
7596
  value: string;
7596
7597
  /**
7597
7598
  * Sets or retrieves the data type of the value attribute.
@@ -7604,6 +7605,7 @@ interface HTMLParamElement extends HTMLElement {
7604
7605
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
7605
7606
  }
7606
7607
 
7608
+ /** @deprecated */
7607
7609
  declare var HTMLParamElement: {
7608
7610
  prototype: HTMLParamElement;
7609
7611
  new(): HTMLParamElement;
@@ -8497,7 +8499,7 @@ interface IDBDatabase extends EventTarget {
8497
8499
  */
8498
8500
  deleteObjectStore(name: string): void;
8499
8501
  /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
8500
- transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
8502
+ transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
8501
8503
  addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8502
8504
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
8503
8505
  removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -9083,126 +9085,6 @@ declare var LockManager: {
9083
9085
  new(): LockManager;
9084
9086
  };
9085
9087
 
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
-
9206
9088
  interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
9207
9089
  }
9208
9090
 
@@ -9924,8 +9806,6 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9924
9806
  canShare(data?: ShareData): boolean;
9925
9807
  getGamepads(): (Gamepad | null)[];
9926
9808
  /** Available only in secure contexts. */
9927
- requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9928
- /** Available only in secure contexts. */
9929
9809
  requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9930
9810
  sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
9931
9811
  /** Available only in secure contexts. */
@@ -17504,7 +17384,6 @@ interface HTMLElementTagNameMap {
17504
17384
  "option": HTMLOptionElement;
17505
17385
  "output": HTMLOutputElement;
17506
17386
  "p": HTMLParagraphElement;
17507
- "param": HTMLParamElement;
17508
17387
  "picture": HTMLPictureElement;
17509
17388
  "pre": HTMLPreElement;
17510
17389
  "progress": HTMLProgressElement;
@@ -17546,12 +17425,34 @@ interface HTMLElementTagNameMap {
17546
17425
  }
17547
17426
 
17548
17427
  interface HTMLElementDeprecatedTagNameMap {
17428
+ "acronym": HTMLElement;
17429
+ "applet": HTMLUnknownElement;
17430
+ "basefont": HTMLElement;
17431
+ "bgsound": HTMLUnknownElement;
17432
+ "big": HTMLElement;
17433
+ "blink": HTMLUnknownElement;
17434
+ "center": HTMLElement;
17549
17435
  "dir": HTMLDirectoryElement;
17550
17436
  "font": HTMLFontElement;
17551
17437
  "frame": HTMLFrameElement;
17552
17438
  "frameset": HTMLFrameSetElement;
17439
+ "isindex": HTMLUnknownElement;
17440
+ "keygen": HTMLUnknownElement;
17553
17441
  "listing": HTMLPreElement;
17554
17442
  "marquee": HTMLMarqueeElement;
17443
+ "menuitem": HTMLElement;
17444
+ "multicol": HTMLUnknownElement;
17445
+ "nextid": HTMLUnknownElement;
17446
+ "nobr": HTMLElement;
17447
+ "noembed": HTMLElement;
17448
+ "noframes": HTMLElement;
17449
+ "param": HTMLParamElement;
17450
+ "plaintext": HTMLElement;
17451
+ "rb": HTMLElement;
17452
+ "rtc": HTMLElement;
17453
+ "spacer": HTMLUnknownElement;
17454
+ "strike": HTMLElement;
17455
+ "tt": HTMLElement;
17555
17456
  "xmp": HTMLPreElement;
17556
17457
  }
17557
17458
 
@@ -18192,9 +18093,6 @@ type KeyType = "private" | "public" | "secret";
18192
18093
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18193
18094
  type LineAlignSetting = "center" | "end" | "start";
18194
18095
  type LockMode = "exclusive" | "shared";
18195
- type MIDIPortConnectionState = "closed" | "open" | "pending";
18196
- type MIDIPortDeviceState = "connected" | "disconnected";
18197
- type MIDIPortType = "input" | "output";
18198
18096
  type MediaDecodingType = "file" | "media-source" | "webrtc";
18199
18097
  type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
18200
18098
  type MediaEncodingType = "record" | "webrtc";
package/iterable.d.ts CHANGED
@@ -101,7 +101,7 @@ interface Headers {
101
101
 
102
102
  interface IDBDatabase {
103
103
  /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
104
- transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
104
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
105
105
  }
106
106
 
107
107
  interface IDBObjectStore {
@@ -113,16 +113,6 @@ 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
-
126
116
  interface MediaKeyStatusMap {
127
117
  [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
128
118
  entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],