Skip to content

Commit

Permalink
fix: add types (#136)
Browse files Browse the repository at this point in the history
* fix: add types

* chore: add declaration files to package

* fix: move types to types-dir update package.json

* fix: update types for package
  • Loading branch information
Birkbjo authored Sep 11, 2023
1 parent 2a0d864 commit 1b37268
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@
"access": "public"
},
"files": [
"build"
"build",
"types"
],
"types": "types",
"devDependencies": {
"@dhis2/cli-app-scripts": "^5.7.2",
"@dhis2/cli-style": "^7.3.0"
},
"dependencies": {
"@types/i18next": "^11.9.0",
"i18next": "^10.3",
"moment": "^2.24.0"
},
Expand Down
3 changes: 3 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import i18next from 'i18next'

export default i18next
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,11 @@
resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz#3c9ee980f1a10d6021ae6632ca3e79ca2ec4fb50"
integrity sha512-giAlZwstKbmvMk1OO7WXSj4OZ0keXAcl2TQq4LWHiiPH2ByaH7WeUzng+Qej8UPxxv+8lRTuouo0iaNDBuzIBA==

"@types/i18next@^11.9.0":
version "11.9.0"
resolved "https://registry.yarnpkg.com/@types/i18next/-/i18next-11.9.0.tgz#e3781b5b6a923902c63e61d09b98881999a4eb88"
integrity sha512-9ah3/OkCuZRH8QJPOfnTh5Q6JvohJivWGjmK5IgsvKEXCLpVbIPB/RXOM22Ms3xFT2Mbvt7d/mh4U7GIxEuN6A==

"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762"
Expand Down

0 comments on commit 1b37268

Please sign in to comment.