From cbd5a35bf68055609e77f2efd6becdeb1e052b46 Mon Sep 17 00:00:00 2001 From: microshine Date: Tue, 26 Oct 2021 12:43:00 +0300 Subject: [PATCH] fix: Type error --- index.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index a347040..2efc11f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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(array: T): T; + public getRandomValues(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;