Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
export {};
|
|
|
|
import { webcrypto } from "crypto";
|
|
|
|
declare global {
|
|
var Crypto: typeof globalThis extends { onmessage: any; Crypto: infer T } ? T : {
|
|
prototype: webcrypto.Crypto;
|
|
new(): webcrypto.Crypto;
|
|
};
|
|
|
|
var CryptoKey: typeof globalThis extends { onmessage: any; CryptoKey: infer T } ? T : {
|
|
prototype: webcrypto.CryptoKey;
|
|
new(): webcrypto.CryptoKey;
|
|
};
|
|
|
|
var SubtleCrypto: typeof globalThis extends { onmessage: any; SubtleCrypto: infer T } ? T : {
|
|
prototype: webcrypto.SubtleCrypto;
|
|
new(): webcrypto.SubtleCrypto;
|
|
supports(
|
|
operation: string,
|
|
algorithm: webcrypto.AlgorithmIdentifier,
|
|
length?: number,
|
|
): boolean;
|
|
supports(
|
|
operation: string,
|
|
algorithm: webcrypto.AlgorithmIdentifier,
|
|
additionalAlgorithm: webcrypto.AlgorithmIdentifier,
|
|
): boolean;
|
|
};
|
|
|
|
var crypto: typeof globalThis extends { onmessage: any; crypto: infer T } ? T : webcrypto.Crypto;
|
|
}
|