From b0360f6367947fab9476b7be387146100fd59e4f Mon Sep 17 00:00:00 2001 From: Momen Zalabany Date: Mon, 12 Apr 2021 09:15:59 +0200 Subject: [PATCH] fix:typescript: set default export (#18) javascript use `module.exports = function (opts) {` which is equivalent to default export in typescript; infact keypair is not exported as named export in javascript. --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index ce5ec94..c1d266c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -17,3 +17,4 @@ export interface KeypairResults { * @param opts */ export function keypair(opts?: KeypairOptions): KeypairResults; +export default keypair;