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 };