@types/serviceworker 0.0.32 → 0.0.33
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 +46 -0
- 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.33 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.33.
|
package/index.d.ts
CHANGED
|
@@ -304,6 +304,24 @@ interface KeyAlgorithm {
|
|
|
304
304
|
name: string;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
interface LockInfo {
|
|
308
|
+
clientId?: string;
|
|
309
|
+
mode?: LockMode;
|
|
310
|
+
name?: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
interface LockManagerSnapshot {
|
|
314
|
+
held?: LockInfo[];
|
|
315
|
+
pending?: LockInfo[];
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
interface LockOptions {
|
|
319
|
+
ifAvailable?: boolean;
|
|
320
|
+
mode?: LockMode;
|
|
321
|
+
signal?: AbortSignal;
|
|
322
|
+
steal?: boolean;
|
|
323
|
+
}
|
|
324
|
+
|
|
307
325
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
308
326
|
configuration?: MediaDecodingConfiguration;
|
|
309
327
|
}
|
|
@@ -2043,6 +2061,29 @@ interface KHR_parallel_shader_compile {
|
|
|
2043
2061
|
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
2044
2062
|
}
|
|
2045
2063
|
|
|
2064
|
+
/** Available only in secure contexts. */
|
|
2065
|
+
interface Lock {
|
|
2066
|
+
readonly mode: LockMode;
|
|
2067
|
+
readonly name: string;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
declare var Lock: {
|
|
2071
|
+
prototype: Lock;
|
|
2072
|
+
new(): Lock;
|
|
2073
|
+
};
|
|
2074
|
+
|
|
2075
|
+
/** Available only in secure contexts. */
|
|
2076
|
+
interface LockManager {
|
|
2077
|
+
query(): Promise<LockManagerSnapshot>;
|
|
2078
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
2079
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
declare var LockManager: {
|
|
2083
|
+
prototype: LockManager;
|
|
2084
|
+
new(): LockManager;
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2046
2087
|
interface MediaCapabilities {
|
|
2047
2088
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
2048
2089
|
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
@@ -5332,6 +5373,10 @@ declare namespace WebAssembly {
|
|
|
5332
5373
|
function validate(bytes: BufferSource): boolean;
|
|
5333
5374
|
}
|
|
5334
5375
|
|
|
5376
|
+
interface LockGrantedCallback {
|
|
5377
|
+
(lock: Lock | null): any;
|
|
5378
|
+
}
|
|
5379
|
+
|
|
5335
5380
|
interface OnErrorEventHandlerNonNull {
|
|
5336
5381
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
5337
5382
|
}
|
|
@@ -5505,6 +5550,7 @@ type ImageOrientation = "flipY" | "none";
|
|
|
5505
5550
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5506
5551
|
type KeyType = "private" | "public" | "secret";
|
|
5507
5552
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
5553
|
+
type LockMode = "exclusive" | "shared";
|
|
5508
5554
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
5509
5555
|
type MediaEncodingType = "record" | "webrtc";
|
|
5510
5556
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|