js-rln/src/index.ts

12 lines
425 B
TypeScript
Raw Normal View History

2022-09-06 16:40:19 -04:00
import { RLNInstance } from "./rln";
// 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");
return await rlnModule.create();
2022-09-06 12:06:19 -04:00
}