@types/web 0.0.34 → 0.0.38

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
@@ -8,6 +8,20 @@ The APIs inside `@types/web` are [generated from](https://github.com/microsoft/T
8
8
 
9
9
  ## Installation
10
10
 
11
+ With TypeScript 4.5+ using [lib replacement](https://github.com/microsoft/TypeScript/pull/45771), you can swap the DOM lib with this dependency:
12
+
13
+ ```sh
14
+ pnpm add @typescript/lib-dom@npm:@types/web --save-dev
15
+ npm install @typescript/lib-dom@npm:@types/web --save-dev
16
+ yarn add @typescript/lib-dom@npm:@types/web --dev
17
+ ```
18
+
19
+ That's all.
20
+
21
+ <details>
22
+ <summary>TypeScript 4.4 and below</summary>
23
+
24
+ <br/>
11
25
  To use `@types/web` you need to do two things:
12
26
 
13
27
  1. Install the dependency: `npm install @types/web --save-dev`, `yarn add @types/web --dev` or `pnpm add @types/web --dev`.
@@ -17,7 +31,10 @@ To use `@types/web` you need to do two things:
17
31
  1. **Without "lib"** - You will need to add `"lib": []`. The value you want to add inside your lib should correlate to your [`"target"`](https://www.typescriptlang.org/tsconfig#target). For example if you had `"target": "es2017"`, then you would add `"lib": ["es2017"]`
18
32
  1. **With "lib"** - You should remove `"dom"`.
19
33
 
20
- That's all.
34
+ Removing `"dom"` gives @types/web the chance to provide the same set of global declarations. However, It's possible that your dependencies pull in the TypeScript DOM library, in which case you can either try to make that not happen, or use TypeScript 4.5 to systematically replace the library.
35
+
36
+ </details>
37
+
21
38
 
22
39
  ## SemVer
23
40
 
@@ -30,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
30
47
 
31
48
  ## Deploy Metadata
32
49
 
33
- You can read what changed in version 0.0.34 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.34.
50
+ You can read what changed in version 0.0.38 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.38.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference path="./index.iterable.d.ts" />
1
+ /// <reference path="./iterable.d.ts" />
2
2
 
3
3
  /////////////////////////////
4
4
  /// Window APIs
@@ -810,6 +810,7 @@ interface MediaTrackCapabilities {
810
810
 
811
811
  interface MediaTrackConstraintSet {
812
812
  aspectRatio?: ConstrainDouble;
813
+ autoGainControl?: ConstrainBoolean;
813
814
  channelCount?: ConstrainULong;
814
815
  deviceId?: ConstrainDOMString;
815
816
  echoCancellation?: ConstrainBoolean;
@@ -818,6 +819,7 @@ interface MediaTrackConstraintSet {
818
819
  groupId?: ConstrainDOMString;
819
820
  height?: ConstrainULong;
820
821
  latency?: ConstrainDouble;
822
+ noiseSuppression?: ConstrainBoolean;
821
823
  sampleRate?: ConstrainULong;
822
824
  sampleSize?: ConstrainULong;
823
825
  suppressLocalAudioPlayback?: ConstrainBoolean;
@@ -830,12 +832,14 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet {
830
832
 
831
833
  interface MediaTrackSettings {
832
834
  aspectRatio?: number;
835
+ autoGainControl?: boolean;
833
836
  deviceId?: string;
834
837
  echoCancellation?: boolean;
835
838
  facingMode?: string;
836
839
  frameRate?: number;
837
840
  groupId?: string;
838
841
  height?: number;
842
+ noiseSuppression?: boolean;
839
843
  restrictOwnAudio?: boolean;
840
844
  sampleRate?: number;
841
845
  sampleSize?: number;
@@ -844,12 +848,14 @@ interface MediaTrackSettings {
844
848
 
845
849
  interface MediaTrackSupportedConstraints {
846
850
  aspectRatio?: boolean;
851
+ autoGainControl?: boolean;
847
852
  deviceId?: boolean;
848
853
  echoCancellation?: boolean;
849
854
  facingMode?: boolean;
850
855
  frameRate?: boolean;
851
856
  groupId?: boolean;
852
857
  height?: boolean;
858
+ noiseSuppression?: boolean;
853
859
  sampleRate?: boolean;
854
860
  sampleSize?: boolean;
855
861
  suppressLocalAudioPlayback?: boolean;
@@ -2776,11 +2782,14 @@ interface CSSStyleDeclaration {
2776
2782
  gridAutoRows: string;
2777
2783
  gridColumn: string;
2778
2784
  gridColumnEnd: string;
2785
+ /** @deprecated This is a legacy alias of `columnGap`. */
2779
2786
  gridColumnGap: string;
2780
2787
  gridColumnStart: string;
2788
+ /** @deprecated This is a legacy alias of `gap`. */
2781
2789
  gridGap: string;
2782
2790
  gridRow: string;
2783
2791
  gridRowEnd: string;
2792
+ /** @deprecated This is a legacy alias of `rowGap`. */
2784
2793
  gridRowGap: string;
2785
2794
  gridRowStart: string;
2786
2795
  gridTemplate: string;
@@ -3019,15 +3028,15 @@ interface CSSStyleDeclaration {
3019
3028
  webkitBorderTopLeftRadius: string;
3020
3029
  /** @deprecated This is a legacy alias of `borderTopRightRadius`. */
3021
3030
  webkitBorderTopRightRadius: string;
3022
- /** @deprecated */
3031
+ /** @deprecated This is a legacy alias of `boxAlign`. */
3023
3032
  webkitBoxAlign: string;
3024
- /** @deprecated */
3033
+ /** @deprecated This is a legacy alias of `boxFlex`. */
3025
3034
  webkitBoxFlex: string;
3026
- /** @deprecated */
3035
+ /** @deprecated This is a legacy alias of `boxOrdinalGroup`. */
3027
3036
  webkitBoxOrdinalGroup: string;
3028
- /** @deprecated */
3037
+ /** @deprecated This is a legacy alias of `boxOrient`. */
3029
3038
  webkitBoxOrient: string;
3030
- /** @deprecated */
3039
+ /** @deprecated This is a legacy alias of `boxPack`. */
3031
3040
  webkitBoxPack: string;
3032
3041
  /** @deprecated This is a legacy alias of `boxShadow`. */
3033
3042
  webkitBoxShadow: string;
@@ -16548,7 +16557,8 @@ declare namespace WebAssembly {
16548
16557
 
16549
16558
  var CompileError: {
16550
16559
  prototype: CompileError;
16551
- new(): CompileError;
16560
+ new(message?: string): CompileError;
16561
+ (message?: string): CompileError;
16552
16562
  };
16553
16563
 
16554
16564
  interface Global {
@@ -16575,7 +16585,8 @@ declare namespace WebAssembly {
16575
16585
 
16576
16586
  var LinkError: {
16577
16587
  prototype: LinkError;
16578
- new(): LinkError;
16588
+ new(message?: string): LinkError;
16589
+ (message?: string): LinkError;
16579
16590
  };
16580
16591
 
16581
16592
  interface Memory {
@@ -16604,7 +16615,8 @@ declare namespace WebAssembly {
16604
16615
 
16605
16616
  var RuntimeError: {
16606
16617
  prototype: RuntimeError;
16607
- new(): RuntimeError;
16618
+ new(message?: string): RuntimeError;
16619
+ (message?: string): RuntimeError;
16608
16620
  };
16609
16621
 
16610
16622
  interface Table {
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.34",
3
+ "version": "0.0.38",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],