@types/web 0.0.58 → 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 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.58 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.58.
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
 
@@ -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. */
@@ -9857,6 +9994,7 @@ interface NavigatorOnLine {
9857
9994
  interface NavigatorPlugins {
9858
9995
  /** @deprecated */
9859
9996
  readonly mimeTypes: MimeTypeArray;
9997
+ readonly pdfViewerEnabled: boolean;
9860
9998
  /** @deprecated */
9861
9999
  readonly plugins: PluginArray;
9862
10000
  /** @deprecated */
@@ -14398,13 +14536,6 @@ interface WEBGL_compressed_texture_etc1 {
14398
14536
  readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
14399
14537
  }
14400
14538
 
14401
- interface WEBGL_compressed_texture_pvrtc {
14402
- readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
14403
- readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
14404
- readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
14405
- readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
14406
- }
14407
-
14408
14539
  /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
14409
14540
  interface WEBGL_compressed_texture_s3tc {
14410
14541
  readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -15907,7 +16038,6 @@ interface WebGLRenderingContextBase {
15907
16038
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
15908
16039
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
15909
16040
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
15910
- getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
15911
16041
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
15912
16042
  getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
15913
16043
  getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
@@ -18076,6 +18206,9 @@ type KeyType = "private" | "public" | "secret";
18076
18206
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18077
18207
  type LineAlignSetting = "center" | "end" | "start";
18078
18208
  type LockMode = "exclusive" | "shared";
18209
+ type MIDIPortConnectionState = "closed" | "open" | "pending";
18210
+ type MIDIPortDeviceState = "connected" | "disconnected";
18211
+ type MIDIPortType = "input" | "output";
18079
18212
  type MediaDecodingType = "file" | "media-source" | "webrtc";
18080
18213
  type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
18081
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]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],