Skip to content

Commit

Permalink
chore: types improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarulislam committed Dec 15, 2023
1 parent 3ec7d08 commit 5dfe8e2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions helpers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./dist/src/helpers"

export { default } from "./dist/src/helpers"
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hoppscotch/ui",
"version": "0.0.11",
"version": "0.0.13",
"license": "MIT",
"description": "Hoppscotch UI",
"author": "Hoppscotch ([email protected])",
Expand Down Expand Up @@ -94,7 +94,9 @@
},
"type": "module",
"files": [
"dist"
"dist",
"ui-preset.d.ts",
"helpers.d.ts"
],
"module": "./dist/index.js",
"main": "./dist/index.js",
Expand All @@ -104,9 +106,14 @@
"./themes.scss": "./dist/themes.scss",
"./ui-preset": {
"import": "./dist/ui-preset.js",
"require": "./dist/ui-preset.js"
"require": "./dist/ui-preset.js",
"types": "./dist/ui-preset.d.ts"
},
"./helpers/treeAdapter": "./src/helpers/treeAdapter.ts"
"./helpers": {
"import": "./dist/src/helpers",
"require": "./dist/src/helpers",
"types": "./dist/src/helpers/index.d.ts"
}
},
"types": "./dist/index.d.ts"
}
3 changes: 3 additions & 0 deletions ui-preset.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./dist/ui-preset"

export { default } from "./dist/ui-preset"

0 comments on commit 5dfe8e2

Please sign in to comment.