Merge pull request #65 from PeculiarVentures/fix-type-declaration
fix: type declaration for Crypto
This commit is contained in:
commit
94ae0d3b43
|
@ -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 {
|
||||||
|
|
Reference in New Issue