Skip to content

Commit

Permalink
fix(types): use universal export defintion;
Browse files Browse the repository at this point in the history
- allows ComonJS, ESM, and TS
- Closes #17
- Closes #18
  • Loading branch information
lukeed committed Jul 3, 2020
1 parent 77051f8 commit 0d324fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion klona.d.ts
@@ -1 +1,4 @@
export default function<T>(val: T): T;
declare module 'klona' {
function klona<T>(val: T): T;
export = klona;
}

0 comments on commit 0d324fe

Please sign in to comment.