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

14 lines
514 B
TypeScript
Raw Normal View History

2019-02-14 10:58:38 +00:00
import * as core from "webcrypto-core";
2019-01-25 12:49:00 +00:00
2019-02-14 10:58:38 +00:00
export declare class Crypto implements core.NativeCrypto {
public subtle: SubtleCrypto;
public getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T;
2019-01-25 12:49:00 +00:00
}
2019-02-14 10:58:38 +00:00
export declare class CryptoKey implements core.NativeCryptoKey {
public algorithm: KeyAlgorithm;
public extractable: boolean;
public type: KeyType;
public usages: KeyUsage[];
}