fix: type declaration for Crypto

This commit is contained in:
microshine 2023-03-24 13:16:31 +01:00
parent 3e22e86bef
commit 335c2cb452
1 changed files with 1 additions and 1 deletions

2
index.d.ts vendored
View File

@ -1,7 +1,7 @@
export declare class Crypto implements globalThis.Crypto { export declare class Crypto implements globalThis.Crypto {
public subtle: SubtleCrypto; public subtle: SubtleCrypto;
public getRandomValues<T extends ArrayBufferView | null>(array: T): T; public getRandomValues<T extends ArrayBufferView | null>(array: T): T;
public randomUUID(): string; randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
} }
export declare class CryptoKey implements globalThis.CryptoKey { export declare class CryptoKey implements globalThis.CryptoKey {