mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-05 23:23:12 +00:00
fix: export types
This commit is contained in:
parent
1e83f0a70e
commit
134ae1de45
@ -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<RLNInstance> {
|
||||
// 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 };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user