@types/web 0.0.58 → 0.0.61

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.61 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.61.
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,8 @@ 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;
1967
+ throwIfAborted(): void;
1953
1968
  addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1954
1969
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1955
1970
  removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -2805,7 +2820,6 @@ interface CSSStyleDeclaration {
2805
2820
  clipPath: string;
2806
2821
  clipRule: string;
2807
2822
  color: string;
2808
- colorAdjust: string;
2809
2823
  colorInterpolation: string;
2810
2824
  colorInterpolationFilters: string;
2811
2825
  colorScheme: string;
@@ -2857,7 +2871,6 @@ interface CSSStyleDeclaration {
2857
2871
  fontStyle: string;
2858
2872
  fontSynthesis: string;
2859
2873
  fontVariant: string;
2860
- /** @deprecated */
2861
2874
  fontVariantAlternates: string;
2862
2875
  fontVariantCaps: string;
2863
2876
  fontVariantEastAsian: string;
@@ -2952,7 +2965,6 @@ interface CSSStyleDeclaration {
2952
2965
  objectFit: string;
2953
2966
  objectPosition: string;
2954
2967
  offset: string;
2955
- offsetAnchor: string;
2956
2968
  offsetDistance: string;
2957
2969
  offsetPath: string;
2958
2970
  offsetRotate: string;
@@ -2997,6 +3009,7 @@ interface CSSStyleDeclaration {
2997
3009
  placeSelf: string;
2998
3010
  pointerEvents: string;
2999
3011
  position: string;
3012
+ printColorAdjust: string;
3000
3013
  quotes: string;
3001
3014
  resize: string;
3002
3015
  right: string;
@@ -4490,6 +4503,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4490
4503
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
4491
4504
  createEvent(eventInterface: "InputEvent"): InputEvent;
4492
4505
  createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
4506
+ createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
4507
+ createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
4493
4508
  createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
4494
4509
  createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
4495
4510
  createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -7701,6 +7716,7 @@ interface HTMLScriptElement extends HTMLElement {
7701
7716
  declare var HTMLScriptElement: {
7702
7717
  prototype: HTMLScriptElement;
7703
7718
  new(): HTMLScriptElement;
7719
+ supports(type: string): boolean;
7704
7720
  };
7705
7721
 
7706
7722
  /** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
@@ -7832,6 +7848,8 @@ declare var HTMLSpanElement: {
7832
7848
 
7833
7849
  /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
7834
7850
  interface HTMLStyleElement extends HTMLElement, LinkStyle {
7851
+ /** Enables or disables the style sheet. */
7852
+ disabled: boolean;
7835
7853
  /** Sets or retrieves the media type. */
7836
7854
  media: string;
7837
7855
  /**
@@ -9067,6 +9085,126 @@ declare var LockManager: {
9067
9085
  new(): LockManager;
9068
9086
  };
9069
9087
 
9088
+ interface MIDIAccessEventMap {
9089
+ "statechange": Event;
9090
+ }
9091
+
9092
+ /** Available only in secure contexts. */
9093
+ interface MIDIAccess extends EventTarget {
9094
+ readonly inputs: MIDIInputMap;
9095
+ onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
9096
+ readonly outputs: MIDIOutputMap;
9097
+ readonly sysexEnabled: boolean;
9098
+ addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9099
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9100
+ removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9101
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9102
+ }
9103
+
9104
+ declare var MIDIAccess: {
9105
+ prototype: MIDIAccess;
9106
+ new(): MIDIAccess;
9107
+ };
9108
+
9109
+ /** Available only in secure contexts. */
9110
+ interface MIDIConnectionEvent extends Event {
9111
+ readonly port: MIDIPort;
9112
+ }
9113
+
9114
+ declare var MIDIConnectionEvent: {
9115
+ prototype: MIDIConnectionEvent;
9116
+ new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
9117
+ };
9118
+
9119
+ interface MIDIInputEventMap extends MIDIPortEventMap {
9120
+ "midimessage": Event;
9121
+ }
9122
+
9123
+ /** Available only in secure contexts. */
9124
+ interface MIDIInput extends MIDIPort {
9125
+ onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
9126
+ addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9127
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9128
+ removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9129
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9130
+ }
9131
+
9132
+ declare var MIDIInput: {
9133
+ prototype: MIDIInput;
9134
+ new(): MIDIInput;
9135
+ };
9136
+
9137
+ /** Available only in secure contexts. */
9138
+ interface MIDIInputMap {
9139
+ forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
9140
+ }
9141
+
9142
+ declare var MIDIInputMap: {
9143
+ prototype: MIDIInputMap;
9144
+ new(): MIDIInputMap;
9145
+ };
9146
+
9147
+ /** Available only in secure contexts. */
9148
+ interface MIDIMessageEvent extends Event {
9149
+ readonly data: Uint8Array;
9150
+ }
9151
+
9152
+ declare var MIDIMessageEvent: {
9153
+ prototype: MIDIMessageEvent;
9154
+ new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
9155
+ };
9156
+
9157
+ /** Available only in secure contexts. */
9158
+ interface MIDIOutput extends MIDIPort {
9159
+ send(data: number[], timestamp?: DOMHighResTimeStamp): void;
9160
+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9161
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9162
+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9163
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9164
+ }
9165
+
9166
+ declare var MIDIOutput: {
9167
+ prototype: MIDIOutput;
9168
+ new(): MIDIOutput;
9169
+ };
9170
+
9171
+ /** Available only in secure contexts. */
9172
+ interface MIDIOutputMap {
9173
+ forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
9174
+ }
9175
+
9176
+ declare var MIDIOutputMap: {
9177
+ prototype: MIDIOutputMap;
9178
+ new(): MIDIOutputMap;
9179
+ };
9180
+
9181
+ interface MIDIPortEventMap {
9182
+ "statechange": Event;
9183
+ }
9184
+
9185
+ /** Available only in secure contexts. */
9186
+ interface MIDIPort extends EventTarget {
9187
+ readonly connection: MIDIPortConnectionState;
9188
+ readonly id: string;
9189
+ readonly manufacturer: string | null;
9190
+ readonly name: string | null;
9191
+ onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
9192
+ readonly state: MIDIPortDeviceState;
9193
+ readonly type: MIDIPortType;
9194
+ readonly version: string | null;
9195
+ close(): Promise<MIDIPort>;
9196
+ open(): Promise<MIDIPort>;
9197
+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9198
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9199
+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9200
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9201
+ }
9202
+
9203
+ declare var MIDIPort: {
9204
+ prototype: MIDIPort;
9205
+ new(): MIDIPort;
9206
+ };
9207
+
9070
9208
  interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
9071
9209
  }
9072
9210
 
@@ -9788,6 +9926,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9788
9926
  canShare(data?: ShareData): boolean;
9789
9927
  getGamepads(): (Gamepad | null)[];
9790
9928
  /** Available only in secure contexts. */
9929
+ requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9930
+ /** Available only in secure contexts. */
9791
9931
  requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9792
9932
  sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
9793
9933
  /** Available only in secure contexts. */
@@ -9857,6 +9997,7 @@ interface NavigatorOnLine {
9857
9997
  interface NavigatorPlugins {
9858
9998
  /** @deprecated */
9859
9999
  readonly mimeTypes: MimeTypeArray;
10000
+ readonly pdfViewerEnabled: boolean;
9860
10001
  /** @deprecated */
9861
10002
  readonly plugins: PluginArray;
9862
10003
  /** @deprecated */
@@ -14398,13 +14539,6 @@ interface WEBGL_compressed_texture_etc1 {
14398
14539
  readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
14399
14540
  }
14400
14541
 
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
14542
  /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
14409
14543
  interface WEBGL_compressed_texture_s3tc {
14410
14544
  readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -15907,7 +16041,6 @@ interface WebGLRenderingContextBase {
15907
16041
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
15908
16042
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
15909
16043
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
15910
- getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
15911
16044
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
15912
16045
  getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
15913
16046
  getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
@@ -18076,6 +18209,9 @@ type KeyType = "private" | "public" | "secret";
18076
18209
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18077
18210
  type LineAlignSetting = "center" | "end" | "start";
18078
18211
  type LockMode = "exclusive" | "shared";
18212
+ type MIDIPortConnectionState = "closed" | "open" | "pending";
18213
+ type MIDIPortDeviceState = "connected" | "disconnected";
18214
+ type MIDIPortType = "input" | "output";
18079
18215
  type MediaDecodingType = "file" | "media-source" | "webrtc";
18080
18216
  type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
18081
18217
  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.61",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],