[TS] Clean up wasm environment exports
[ldk-java] / ts / node / crypto.d.ts
diff --git a/ts/node/crypto.d.ts b/ts/node/crypto.d.ts
new file mode 100755 (executable)
index 0000000..f7020d4
--- /dev/null
@@ -0,0 +1,10 @@
+// Minimal part of the Node crypto API which we depend on.
+// May be (c) Microsoft licensed under the MIT license, however API's are not generally copyrightable per recent precedent.
+declare module 'crypto' {
+    namespace webcrypto {
+               function getRandomValues(TypedArray): void;
+    }
+}
+declare module 'node:crypto' {
+    export * from 'crypto';
+}