fix: Type error

This commit is contained in:
microshine 2021-10-26 12:43:00 +03:00
parent 5acb3e25ab
commit cbd5a35bf6
1 changed files with 3 additions and 5 deletions

8
index.d.ts vendored
View File

@ -1,11 +1,9 @@
import * as core from "webcrypto-core";
export declare class Crypto implements core.NativeCrypto {
export declare class Crypto implements globalThis.Crypto {
public subtle: SubtleCrypto;
public getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T;
public getRandomValues<T extends ArrayBufferView | null>(array: T): T;
}
export declare class CryptoKey implements core.NativeCryptoKey {
export declare class CryptoKey implements globalThis.CryptoKey {
public algorithm: KeyAlgorithm;
public extractable: boolean;
public type: KeyType;