This repository has been archived on 2023-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
webcrypto/index.d.ts

13 lines
420 B
TypeScript
Raw Normal View History

2021-10-26 09:43:00 +00:00
export declare class Crypto implements globalThis.Crypto {
2019-02-14 10:58:38 +00:00
public subtle: SubtleCrypto;
2021-10-26 09:43:00 +00:00
public getRandomValues<T extends ArrayBufferView | null>(array: T): T;
2023-03-24 12:16:31 +00:00
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
2019-01-25 12:49:00 +00:00
}
2021-10-26 09:43:00 +00:00
export declare class CryptoKey implements globalThis.CryptoKey {
2019-02-14 10:58:38 +00:00
public algorithm: KeyAlgorithm;
public extractable: boolean;
public type: KeyType;
public usages: KeyUsage[];
}