From 406419cac760a5af3c9bf7eefa0620d05f66179d Mon Sep 17 00:00:00 2001 From: dapplion Date: Wed, 25 Nov 2020 17:58:03 +0000 Subject: [PATCH] Set default value for implementation --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 90d00ef..5d876a7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ export type Implementation = "herumi" | "blst-native"; // TODO: Use a Proxy for example to throw an error if it's not initialized yet export let bls: IBls; -async function getImplementation(impl: Implementation): Promise { +async function getImplementation(impl: Implementation = "herumi"): Promise { switch (impl) { case "herumi": // eslint-disable-next-line @typescript-eslint/no-require-imports