Skip to content

Commit 99bfb32

Browse files
committedMar 27, 2021
feat: add type definitions;
- Closes #11
1 parent ccbfdbc commit 99bfb32

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default function (input: Record<string, any>): string;

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"unpkg": "dist/obj-str.min.js",
77
"module": "dist/obj-str.mjs",
88
"main": "dist/obj-str.js",
9+
"types": "index.d.ts",
910
"umd:name": "objstr",
1011
"license": "MIT",
1112
"author": {
@@ -21,6 +22,7 @@
2122
"test": "uvu -r esm -i fixtures test"
2223
},
2324
"files": [
25+
"*.d.ts",
2426
"dist"
2527
],
2628
"keywords": [

0 commit comments

Comments
 (0)
Please sign in to comment.