diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-02-26 22:36:26 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 12:06:26 -0500 |
commit | 4b56537ea9d5c3e5f60ca817ed00c55dcbb2131c (patch) | |
tree | 175b10666df4af715268dc3a32306214c0a88859 /op_crates/crypto/lib.deno_crypto.d.ts | |
parent | 07eb0090445c22001ba50e71359839250c1b749a (diff) |
chore: move crypto types to op_crates/crypto (#9609)
Diffstat (limited to 'op_crates/crypto/lib.deno_crypto.d.ts')
-rw-r--r-- | op_crates/crypto/lib.deno_crypto.d.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/op_crates/crypto/lib.deno_crypto.d.ts b/op_crates/crypto/lib.deno_crypto.d.ts new file mode 100644 index 000000000..a00757e71 --- /dev/null +++ b/op_crates/crypto/lib.deno_crypto.d.ts @@ -0,0 +1,26 @@ +// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. + +/// <reference no-default-lib="true" /> +/// <reference lib="esnext" /> + +declare var crypto: Crypto; + +declare interface Crypto { + readonly subtle: null; + getRandomValues< + T extends + | Int8Array + | Int16Array + | Int32Array + | Uint8Array + | Uint16Array + | Uint32Array + | Uint8ClampedArray + | Float32Array + | Float64Array + | DataView + | null, + >( + array: T, + ): T; +} |