Merge pull request #65 from PeculiarVentures/fix-type-declaration

fix: type declaration for Crypto
This commit is contained in:
Miroshin Stepan 2023-03-24 13:31:54 +01:00 committed by GitHub
commit 94ae0d3b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {
public subtle: SubtleCrypto;
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 {