@types/sharedworker 0.0.66 → 0.0.69
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 +11 -12
- package/iterable.d.ts +3 -3
- 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.69 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.69.
|
package/index.d.ts
CHANGED
|
@@ -665,6 +665,7 @@ interface AbortSignal extends EventTarget {
|
|
|
665
665
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
666
666
|
readonly aborted: boolean;
|
|
667
667
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
668
|
+
readonly reason: any;
|
|
668
669
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
669
670
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
670
671
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2123,6 +2124,11 @@ interface NavigatorLanguage {
|
|
|
2123
2124
|
readonly languages: ReadonlyArray<string>;
|
|
2124
2125
|
}
|
|
2125
2126
|
|
|
2127
|
+
/** Available only in secure contexts. */
|
|
2128
|
+
interface NavigatorLocks {
|
|
2129
|
+
readonly locks: LockManager;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2126
2132
|
interface NavigatorNetworkInformation {
|
|
2127
2133
|
readonly connection: NetworkInformation;
|
|
2128
2134
|
}
|
|
@@ -2643,6 +2649,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
2643
2649
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
2644
2650
|
readonly active: ServiceWorker | null;
|
|
2645
2651
|
readonly installing: ServiceWorker | null;
|
|
2652
|
+
readonly navigationPreload: NavigationPreloadManager;
|
|
2646
2653
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
2647
2654
|
readonly pushManager: PushManager;
|
|
2648
2655
|
readonly scope: string;
|
|
@@ -2708,10 +2715,10 @@ interface SubtleCrypto {
|
|
|
2708
2715
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
2709
2716
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
2710
2717
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2711
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
2712
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
2718
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
2719
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
2713
2720
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
2714
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
2721
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
2715
2722
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2716
2723
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2717
2724
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
@@ -2944,13 +2951,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
2944
2951
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
2945
2952
|
}
|
|
2946
2953
|
|
|
2947
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
2948
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
2949
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
2950
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
2951
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
2952
|
-
}
|
|
2953
|
-
|
|
2954
2954
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
2955
2955
|
interface WEBGL_compressed_texture_s3tc {
|
|
2956
2956
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -4441,7 +4441,6 @@ interface WebGLRenderingContextBase {
|
|
|
4441
4441
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4442
4442
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4443
4443
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4444
|
-
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
4445
4444
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4446
4445
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4447
4446
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -5073,7 +5072,7 @@ declare var WorkerLocation: {
|
|
|
5073
5072
|
};
|
|
5074
5073
|
|
|
5075
5074
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
5076
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
|
5075
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
|
5077
5076
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5078
5077
|
}
|
|
5079
5078
|
|
package/iterable.d.ts
CHANGED
|
@@ -58,10 +58,10 @@ interface MessageEvent<T = any> {
|
|
|
58
58
|
|
|
59
59
|
interface SubtleCrypto {
|
|
60
60
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
61
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
62
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
61
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
62
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
63
63
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
64
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
64
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
65
65
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
66
66
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
67
67
|
}
|