diff --git a/index.d.ts b/index.d.ts index c1557c5..8c0fca5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1 @@ -declare module 'klona' { - function klona(val: T): T; - export = klona; -} +export function klona(input: T): T; diff --git a/src/index.js b/src/index.js old mode 100644 new mode 100755 index 396c564..42966e7 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -export default function klona(x) { +export function klona(x) { if (typeof x !== 'object') return x; var k, tmp, str=Object.prototype.toString.call(x);