@types/audioworklet 0.0.98 → 0.0.99

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
@@ -16,6 +16,8 @@ To use `@types/audioworklet` you need to do two things:
16
16
  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"]`
17
17
  1. **With "lib"** - You should remove `"dom"`.
18
18
 
19
+ 1. If you are using TypeScript 6.0+, set [`libReplacement`](https://www.typescriptlang.org/tsconfig/#libReplacement) to `true` in your `tsconfig.json`.
20
+
19
21
  That's all.
20
22
 
21
23
  If you'd like to ensure that the DOM types are never accidentally included, you can use [@orta/types-noop](https://www.npmjs.com/package/@orta/type-noops) in TypeScript 4.5+.
@@ -28,4 +30,4 @@ This project does not respect semantic versioning as almost every change could p
28
30
 
29
31
  ## Deploy Metadata
30
32
 
31
- You can read what changed in version 0.0.98 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.98.
33
+ You can read what changed in version 0.0.99 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.99.
package/index.d.ts CHANGED
@@ -603,7 +603,7 @@ interface Event {
603
603
  */
604
604
  readonly eventPhase: number;
605
605
  /**
606
- * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
606
+ * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
607
607
  *
608
608
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
609
609
  */
@@ -834,6 +834,18 @@ declare var MessagePort: {
834
834
  new(): MessagePort;
835
835
  };
836
836
 
837
+ interface Origin {
838
+ readonly opaque: boolean;
839
+ isSameOrigin(other: Origin): boolean;
840
+ isSameSite(other: Origin): boolean;
841
+ }
842
+
843
+ declare var Origin: {
844
+ prototype: Origin;
845
+ new(): Origin;
846
+ from(value: any): Origin;
847
+ };
848
+
837
849
  /**
838
850
  * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
839
851
  *
@@ -991,7 +1003,7 @@ interface ReadableStreamBYOBRequest {
991
1003
  *
992
1004
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
993
1005
  */
994
- readonly view: ArrayBufferView<ArrayBuffer> | null;
1006
+ readonly view: Uint8Array<ArrayBuffer> | null;
995
1007
  /**
996
1008
  * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
997
1009
  *
@@ -1596,6 +1608,7 @@ declare namespace WebAssembly {
1596
1608
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
1597
1609
  */
1598
1610
  interface Global<T extends ValueType = ValueType> {
1611
+ /** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
1599
1612
  value: ValueTypeMap[T];
1600
1613
  valueOf(): ValueTypeMap[T];
1601
1614
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/audioworklet",
3
- "version": "0.0.98",
3
+ "version": "0.0.99",
4
4
  "description": "Types for the global scope of Audio Worklets",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -600,7 +600,7 @@ interface Event {
600
600
  */
601
601
  readonly eventPhase: number;
602
602
  /**
603
- * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
603
+ * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
604
604
  *
605
605
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
606
606
  */
@@ -831,6 +831,18 @@ declare var MessagePort: {
831
831
  new(): MessagePort;
832
832
  };
833
833
 
834
+ interface Origin {
835
+ readonly opaque: boolean;
836
+ isSameOrigin(other: Origin): boolean;
837
+ isSameSite(other: Origin): boolean;
838
+ }
839
+
840
+ declare var Origin: {
841
+ prototype: Origin;
842
+ new(): Origin;
843
+ from(value: any): Origin;
844
+ };
845
+
834
846
  /**
835
847
  * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
836
848
  *
@@ -988,7 +1000,7 @@ interface ReadableStreamBYOBRequest {
988
1000
  *
989
1001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
990
1002
  */
991
- readonly view: ArrayBufferView | null;
1003
+ readonly view: Uint8Array | null;
992
1004
  /**
993
1005
  * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
994
1006
  *
@@ -1593,6 +1605,7 @@ declare namespace WebAssembly {
1593
1605
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
1594
1606
  */
1595
1607
  interface Global<T extends ValueType = ValueType> {
1608
+ /** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
1596
1609
  value: ValueTypeMap[T];
1597
1610
  valueOf(): ValueTypeMap[T];
1598
1611
  }
package/ts5.6/index.d.ts CHANGED
@@ -600,7 +600,7 @@ interface Event {
600
600
  */
601
601
  readonly eventPhase: number;
602
602
  /**
603
- * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
603
+ * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
604
604
  *
605
605
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
606
606
  */
@@ -831,6 +831,18 @@ declare var MessagePort: {
831
831
  new(): MessagePort;
832
832
  };
833
833
 
834
+ interface Origin {
835
+ readonly opaque: boolean;
836
+ isSameOrigin(other: Origin): boolean;
837
+ isSameSite(other: Origin): boolean;
838
+ }
839
+
840
+ declare var Origin: {
841
+ prototype: Origin;
842
+ new(): Origin;
843
+ from(value: any): Origin;
844
+ };
845
+
834
846
  /**
835
847
  * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
836
848
  *
@@ -988,7 +1000,7 @@ interface ReadableStreamBYOBRequest {
988
1000
  *
989
1001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
990
1002
  */
991
- readonly view: ArrayBufferView | null;
1003
+ readonly view: Uint8Array | null;
992
1004
  /**
993
1005
  * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
994
1006
  *
@@ -1593,6 +1605,7 @@ declare namespace WebAssembly {
1593
1605
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
1594
1606
  */
1595
1607
  interface Global<T extends ValueType = ValueType> {
1608
+ /** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
1596
1609
  value: ValueTypeMap[T];
1597
1610
  valueOf(): ValueTypeMap[T];
1598
1611
  }
package/ts5.9/index.d.ts CHANGED
@@ -600,7 +600,7 @@ interface Event {
600
600
  */
601
601
  readonly eventPhase: number;
602
602
  /**
603
- * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
603
+ * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
604
604
  *
605
605
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
606
606
  */
@@ -831,6 +831,18 @@ declare var MessagePort: {
831
831
  new(): MessagePort;
832
832
  };
833
833
 
834
+ interface Origin {
835
+ readonly opaque: boolean;
836
+ isSameOrigin(other: Origin): boolean;
837
+ isSameSite(other: Origin): boolean;
838
+ }
839
+
840
+ declare var Origin: {
841
+ prototype: Origin;
842
+ new(): Origin;
843
+ from(value: any): Origin;
844
+ };
845
+
834
846
  /**
835
847
  * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
836
848
  *
@@ -988,7 +1000,7 @@ interface ReadableStreamBYOBRequest {
988
1000
  *
989
1001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
990
1002
  */
991
- readonly view: ArrayBufferView<ArrayBuffer> | null;
1003
+ readonly view: Uint8Array<ArrayBuffer> | null;
992
1004
  /**
993
1005
  * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
994
1006
  *
@@ -1593,6 +1605,7 @@ declare namespace WebAssembly {
1593
1605
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
1594
1606
  */
1595
1607
  interface Global<T extends ValueType = ValueType> {
1608
+ /** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
1596
1609
  value: ValueTypeMap[T];
1597
1610
  valueOf(): ValueTypeMap[T];
1598
1611
  }