From 134ae1de45372d7fe9e275d6d402652b740810fc Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Fri, 23 Sep 2022 16:32:38 +1000 Subject: [PATCH] fix: export types --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 6f9fe0a..4b8b1ea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,13 @@ -import { RLNInstance } from "./rln"; +import type { MembershipKey, RateLimitProof, RLNInstance } from "./rln.js"; // reexport the create function, dynamically imported from rln.ts export async function create(): Promise { // A dependency graph that contains any wasm must all be imported // asynchronously. This file does the single async import, so // that no one else needs to worry about it again. - const rlnModule = await import("./rln"); + const rlnModule = await import("./rln.js"); return await rlnModule.create(); } + +export { RLNInstance, MembershipKey, RateLimitProof };