Skip to content

Commit

Permalink
feat: adds typescript definitions (#18)
Browse files Browse the repository at this point in the history
* feat: adds typescript types

* chore: minor tweaks

* chore: add types to "files" list

* fix: typo – derp

Co-authored-by: Luke Edwards <[email protected]>
  • Loading branch information
maraisr and lukeed committed Jan 27, 2021
1 parent 50a6ead commit e3a48de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function <T extends object, V>(obj: T, keys: string | string[], value: V): void;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"umd:main": "dist/dset.min.js",
"module": "dist/dset.es.js",
"main": "dist/dset.js",
"types": "index.d.ts",
"license": "MIT",
"author": {
"name": "Luke Edwards",
Expand All @@ -22,6 +23,7 @@
"test": "tape test/*.js | tap-spec"
},
"files": [
"*.d.ts",
"dist"
],
"keywords": [
Expand Down

0 comments on commit e3a48de

Please sign in to comment.