Skip to content

Commit

Permalink
break: use named export (#17)
Browse files Browse the repository at this point in the history
* add named export

* break: export named function

* break(types): export named function

* chore: remove `kleur.d.ts` file

* fix(merge): put back proper type definition

Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
  • Loading branch information
d-fischer and lukeed committed Aug 14, 2020
1 parent 0298047 commit 11034e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
declare module 'klona' {
function klona<T>(val: T): T;
export = klona;
}
export function klona<T>(input: T): T;
2 changes: 1 addition & 1 deletion src/index.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 11034e1

Please sign in to comment.