Skip to content

Commit 11034e1

Browse files
d-fischerlukeed
andcommitted
break: use named export (#17)
* 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 <[email protected]>
1 parent 0298047 commit 11034e1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Diff for: index.d.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
declare module 'klona' {
2-
function klona<T>(val: T): T;
3-
export = klona;
4-
}
1+
export function klona<T>(input: T): T;

Diff for: src/index.js

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default function klona(x) {
1+
export function klona(x) {
22
if (typeof x !== 'object') return x;
33

44
var k, tmp, str=Object.prototype.toString.call(x);

0 commit comments

Comments
 (0)