Skip to content

Commit 88aadf1

Browse files
Merge pull request #33 from ThornWalli/feature/export-create-source
fix(export): added package exports
2 parents 9d3c1db + c5a155f commit 88aadf1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

lib/create-sort.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function createSort<T = string>(configuration?: {
2+
unitlessMqAlwaysFirst?: boolean | undefined;
3+
}): (a: T, b: T) => number;

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@
2020
"dev-exec": "docker exec -it scmq-dev sh",
2121
"dev-down": "docker compose -f compose.dev.yml down --remove-orphans"
2222
},
23+
"exports": {
24+
".": {
25+
"types": "./lib/index.d.ts",
26+
"import": "./lib/index.js"
27+
},
28+
"./create-sort": {
29+
"types": "./lib/create-sort.d.ts",
30+
"import": "./lib/create-sort.js"
31+
}
32+
},
2333
"jest": {
2434
"verbose": true,
2535
"testURL": "http://localhost"

0 commit comments

Comments
 (0)