@types/sharedworker 0.0.71 → 0.0.74
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 +12 -6
- package/iterable.d.ts +1 -1
- package/package.json +1 -1
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.74 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.74.
|
package/index.d.ts
CHANGED
|
@@ -228,6 +228,10 @@ interface IDBObjectStoreParameters {
|
|
|
228
228
|
keyPath?: string | string[] | null;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
interface IDBTransactionOptions {
|
|
232
|
+
durability?: IDBTransactionDurability;
|
|
233
|
+
}
|
|
234
|
+
|
|
231
235
|
interface IDBVersionChangeEventInit extends EventInit {
|
|
232
236
|
newVersion?: number | null;
|
|
233
237
|
oldVersion?: number;
|
|
@@ -896,6 +900,7 @@ declare var CustomEvent: {
|
|
|
896
900
|
|
|
897
901
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
898
902
|
interface DOMException extends Error {
|
|
903
|
+
/** @deprecated */
|
|
899
904
|
readonly code: number;
|
|
900
905
|
readonly message: string;
|
|
901
906
|
readonly name: string;
|
|
@@ -1627,7 +1632,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1627
1632
|
*/
|
|
1628
1633
|
deleteObjectStore(name: string): void;
|
|
1629
1634
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
1630
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1635
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1631
1636
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1632
1637
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1633
1638
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -4966,8 +4971,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
4966
4971
|
readonly performance: Performance;
|
|
4967
4972
|
atob(data: string): string;
|
|
4968
4973
|
btoa(data: string): string;
|
|
4969
|
-
clearInterval(id
|
|
4970
|
-
clearTimeout(id
|
|
4974
|
+
clearInterval(id: number | undefined): void;
|
|
4975
|
+
clearTimeout(id: number | undefined): void;
|
|
4971
4976
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4972
4977
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4973
4978
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5083,6 +5088,7 @@ declare var WritableStream: {
|
|
|
5083
5088
|
|
|
5084
5089
|
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
5085
5090
|
interface WritableStreamDefaultController {
|
|
5091
|
+
readonly signal: AbortSignal;
|
|
5086
5092
|
error(e?: any): void;
|
|
5087
5093
|
}
|
|
5088
5094
|
|
|
@@ -5498,8 +5504,8 @@ declare var origin: string;
|
|
|
5498
5504
|
declare var performance: Performance;
|
|
5499
5505
|
declare function atob(data: string): string;
|
|
5500
5506
|
declare function btoa(data: string): string;
|
|
5501
|
-
declare function clearInterval(id
|
|
5502
|
-
declare function clearTimeout(id
|
|
5507
|
+
declare function clearInterval(id: number | undefined): void;
|
|
5508
|
+
declare function clearTimeout(id: number | undefined): void;
|
|
5503
5509
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5504
5510
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5505
5511
|
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5537,7 +5543,7 @@ type GLsizeiptr = number;
|
|
|
5537
5543
|
type GLuint = number;
|
|
5538
5544
|
type GLuint64 = number;
|
|
5539
5545
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
5540
|
-
type HeadersInit = string
|
|
5546
|
+
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
5541
5547
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
5542
5548
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
5543
5549
|
type Int32List = Int32Array | GLint[];
|
package/iterable.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ interface Headers {
|
|
|
39
39
|
|
|
40
40
|
interface IDBDatabase {
|
|
41
41
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
42
|
-
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
|
|
42
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
interface IDBObjectStore {
|