@types/web 0.0.59 → 0.0.62

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +12 -26
  3. 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.59 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.59.
50
+ You can read what changed in version 0.0.62 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.62.
package/index.d.ts CHANGED
@@ -1496,12 +1496,12 @@ interface RTCTransportStats extends RTCStats {
1496
1496
  tlsVersion?: string;
1497
1497
  }
1498
1498
 
1499
- interface ReadableStreamDefaultReadDoneResult {
1499
+ interface ReadableStreamReadDoneResult {
1500
1500
  done: true;
1501
1501
  value?: undefined;
1502
1502
  }
1503
1503
 
1504
- interface ReadableStreamDefaultReadValueResult<T> {
1504
+ interface ReadableStreamReadValueResult<T> {
1505
1505
  done: false;
1506
1506
  value: T;
1507
1507
  }
@@ -1964,6 +1964,7 @@ interface AbortSignal extends EventTarget {
1964
1964
  readonly aborted: boolean;
1965
1965
  onabort: ((this: AbortSignal, ev: Event) => any) | null;
1966
1966
  readonly reason: any;
1967
+ throwIfAborted(): void;
1967
1968
  addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1968
1969
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1969
1970
  removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -2548,7 +2549,7 @@ declare var CSSAnimation: {
2548
2549
 
2549
2550
  /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
2550
2551
  interface CSSConditionRule extends CSSGroupingRule {
2551
- conditionText: string;
2552
+ readonly conditionText: string;
2552
2553
  }
2553
2554
 
2554
2555
  declare var CSSConditionRule: {
@@ -2834,7 +2835,6 @@ interface CSSStyleDeclaration {
2834
2835
  columns: string;
2835
2836
  contain: string;
2836
2837
  content: string;
2837
- contentVisibility: string;
2838
2838
  counterIncrement: string;
2839
2839
  counterReset: string;
2840
2840
  counterSet: string;
@@ -3208,6 +3208,8 @@ interface CSSStyleDeclaration {
3208
3208
  /** @deprecated This is a legacy alias of `perspectiveOrigin`. */
3209
3209
  webkitPerspectiveOrigin: string;
3210
3210
  webkitTextFillColor: string;
3211
+ /** @deprecated This is a legacy alias of `textSizeAdjust`. */
3212
+ webkitTextSizeAdjust: string;
3211
3213
  webkitTextStroke: string;
3212
3214
  webkitTextStrokeColor: string;
3213
3215
  webkitTextStrokeWidth: string;
@@ -6053,7 +6055,6 @@ declare var HTMLBaseElement: {
6053
6055
  };
6054
6056
 
6055
6057
  interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
6056
- "orientationchange": Event;
6057
6058
  }
6058
6059
 
6059
6060
  /** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
@@ -6067,8 +6068,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
6067
6068
  /** @deprecated */
6068
6069
  link: string;
6069
6070
  /** @deprecated */
6070
- onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
6071
- /** @deprecated */
6072
6071
  text: string;
6073
6072
  /** @deprecated */
6074
6073
  vLink: string;
@@ -7847,6 +7846,8 @@ declare var HTMLSpanElement: {
7847
7846
 
7848
7847
  /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
7849
7848
  interface HTMLStyleElement extends HTMLElement, LinkStyle {
7849
+ /** Enables or disables the style sheet. */
7850
+ disabled: boolean;
7850
7851
  /** Sets or retrieves the media type. */
7851
7852
  media: string;
7852
7853
  /**
@@ -9904,7 +9905,7 @@ declare var NavigationPreloadManager: {
9904
9905
  };
9905
9906
 
9906
9907
  /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
9907
- interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9908
+ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9908
9909
  /** Available only in secure contexts. */
9909
9910
  readonly clipboard: Clipboard;
9910
9911
  /** Available only in secure contexts. */
@@ -9961,7 +9962,6 @@ interface NavigatorID {
9961
9962
  readonly appName: string;
9962
9963
  /** @deprecated */
9963
9964
  readonly appVersion: string;
9964
- /** @deprecated */
9965
9965
  readonly platform: string;
9966
9966
  /** @deprecated */
9967
9967
  readonly product: string;
@@ -9983,10 +9983,6 @@ interface NavigatorLocks {
9983
9983
  readonly locks: LockManager;
9984
9984
  }
9985
9985
 
9986
- interface NavigatorNetworkInformation {
9987
- readonly connection: NetworkInformation;
9988
- }
9989
-
9990
9986
  interface NavigatorOnLine {
9991
9987
  readonly onLine: boolean;
9992
9988
  }
@@ -10006,15 +10002,6 @@ interface NavigatorStorage {
10006
10002
  readonly storage: StorageManager;
10007
10003
  }
10008
10004
 
10009
- interface NetworkInformation extends EventTarget {
10010
- readonly type: ConnectionType;
10011
- }
10012
-
10013
- declare var NetworkInformation: {
10014
- prototype: NetworkInformation;
10015
- new(): NetworkInformation;
10016
- };
10017
-
10018
10005
  /** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
10019
10006
  interface Node extends EventTarget {
10020
10007
  /** Returns node's node document's document base URL. */
@@ -11482,7 +11469,7 @@ declare var ReadableStreamDefaultController: {
11482
11469
  };
11483
11470
 
11484
11471
  interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
11485
- read(): Promise<ReadableStreamDefaultReadResult<R>>;
11472
+ read(): Promise<ReadableStreamReadResult<R>>;
11486
11473
  releaseLock(): void;
11487
11474
  }
11488
11475
 
@@ -18131,7 +18118,7 @@ type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
18131
18118
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
18132
18119
  type PerformanceEntryList = PerformanceEntry[];
18133
18120
  type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
18134
- type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
18121
+ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
18135
18122
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
18136
18123
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18137
18124
  type RequestInfo = Request | string;
@@ -18175,11 +18162,10 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
18175
18162
  type ColorSpaceConversion = "default" | "none";
18176
18163
  type CompositeOperation = "accumulate" | "add" | "replace";
18177
18164
  type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
18178
- type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
18179
18165
  type CredentialMediationRequirement = "optional" | "required" | "silent";
18180
18166
  type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
18181
18167
  type DirectionSetting = "" | "lr" | "rl";
18182
- type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
18168
+ type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
18183
18169
  type DistanceModelType = "exponential" | "inverse" | "linear";
18184
18170
  type DocumentReadyState = "complete" | "interactive" | "loading";
18185
18171
  type DocumentVisibilityState = "hidden" | "visible";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.59",
3
+ "version": "0.0.62",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],