Skip to content

Commit

Permalink
fix:typescript: set default export (#18)
Browse files Browse the repository at this point in the history
javascript use `module.exports = function (opts) {` which is equivalent to default export in typescript; infact keypair is not exported as named export in javascript.
  • Loading branch information
alzalabany authored Apr 12, 2021
1 parent ab31a25 commit b0360f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export interface KeypairResults {
* @param opts
*/
export function keypair(opts?: KeypairOptions): KeypairResults;
export default keypair;

0 comments on commit b0360f6

Please sign in to comment.