@types/sharedworker 0.0.153 → 0.0.155
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 +1 -1
- package/index.d.ts +8 -6
- package/package.json +1 -1
- package/ts5.5/index.d.ts +8 -6
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.155 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.155.
|
package/index.d.ts
CHANGED
|
@@ -1806,6 +1806,7 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
1806
1806
|
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
1807
1807
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
|
|
1808
1808
|
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
1809
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
|
|
1809
1810
|
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
1810
1811
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */
|
|
1811
1812
|
skewXSelf(sx?: number): DOMMatrix;
|
|
@@ -3510,7 +3511,7 @@ interface ImageData {
|
|
|
3510
3511
|
*
|
|
3511
3512
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
|
|
3512
3513
|
*/
|
|
3513
|
-
readonly data:
|
|
3514
|
+
readonly data: ImageDataArray;
|
|
3514
3515
|
/**
|
|
3515
3516
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
3516
3517
|
*
|
|
@@ -3528,7 +3529,7 @@ interface ImageData {
|
|
|
3528
3529
|
declare var ImageData: {
|
|
3529
3530
|
prototype: ImageData;
|
|
3530
3531
|
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
3531
|
-
new(data:
|
|
3532
|
+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
3532
3533
|
};
|
|
3533
3534
|
|
|
3534
3535
|
interface ImportMeta {
|
|
@@ -3567,8 +3568,8 @@ interface LockManager {
|
|
|
3567
3568
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
|
|
3568
3569
|
query(): Promise<LockManagerSnapshot>;
|
|
3569
3570
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
|
|
3570
|
-
request(name: string, callback: LockGrantedCallback): Promise<
|
|
3571
|
-
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<
|
|
3571
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
|
|
3572
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
|
|
3572
3573
|
}
|
|
3573
3574
|
|
|
3574
3575
|
declare var LockManager: {
|
|
@@ -8462,8 +8463,8 @@ interface Console {
|
|
|
8462
8463
|
|
|
8463
8464
|
declare var console: Console;
|
|
8464
8465
|
|
|
8465
|
-
interface LockGrantedCallback {
|
|
8466
|
-
(lock: Lock | null):
|
|
8466
|
+
interface LockGrantedCallback<T> {
|
|
8467
|
+
(lock: Lock | null): T;
|
|
8467
8468
|
}
|
|
8468
8469
|
|
|
8469
8470
|
interface OnErrorEventHandlerNonNull {
|
|
@@ -8668,6 +8669,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
8668
8669
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
8669
8670
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
8670
8671
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
8672
|
+
type ImageDataArray = Uint8ClampedArray;
|
|
8671
8673
|
type Int32List = Int32Array | GLint[];
|
|
8672
8674
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
8673
8675
|
type NamedCurve = string;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -1806,6 +1806,7 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
1806
1806
|
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
1807
1807
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
|
|
1808
1808
|
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
1809
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
|
|
1809
1810
|
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
1810
1811
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */
|
|
1811
1812
|
skewXSelf(sx?: number): DOMMatrix;
|
|
@@ -3510,7 +3511,7 @@ interface ImageData {
|
|
|
3510
3511
|
*
|
|
3511
3512
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
|
|
3512
3513
|
*/
|
|
3513
|
-
readonly data:
|
|
3514
|
+
readonly data: ImageDataArray;
|
|
3514
3515
|
/**
|
|
3515
3516
|
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
3516
3517
|
*
|
|
@@ -3528,7 +3529,7 @@ interface ImageData {
|
|
|
3528
3529
|
declare var ImageData: {
|
|
3529
3530
|
prototype: ImageData;
|
|
3530
3531
|
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
3531
|
-
new(data:
|
|
3532
|
+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
3532
3533
|
};
|
|
3533
3534
|
|
|
3534
3535
|
interface ImportMeta {
|
|
@@ -3567,8 +3568,8 @@ interface LockManager {
|
|
|
3567
3568
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
|
|
3568
3569
|
query(): Promise<LockManagerSnapshot>;
|
|
3569
3570
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
|
|
3570
|
-
request(name: string, callback: LockGrantedCallback): Promise<
|
|
3571
|
-
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<
|
|
3571
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
|
|
3572
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
|
|
3572
3573
|
}
|
|
3573
3574
|
|
|
3574
3575
|
declare var LockManager: {
|
|
@@ -8462,8 +8463,8 @@ interface Console {
|
|
|
8462
8463
|
|
|
8463
8464
|
declare var console: Console;
|
|
8464
8465
|
|
|
8465
|
-
interface LockGrantedCallback {
|
|
8466
|
-
(lock: Lock | null):
|
|
8466
|
+
interface LockGrantedCallback<T> {
|
|
8467
|
+
(lock: Lock | null): T;
|
|
8467
8468
|
}
|
|
8468
8469
|
|
|
8469
8470
|
interface OnErrorEventHandlerNonNull {
|
|
@@ -8668,6 +8669,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
8668
8669
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
8669
8670
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
8670
8671
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
8672
|
+
type ImageDataArray = Uint8ClampedArray;
|
|
8671
8673
|
type Int32List = Int32Array | GLint[];
|
|
8672
8674
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
8673
8675
|
type NamedCurve = string;
|