Skip to content

Commit

Permalink
feat: add type declaration (#2)
Browse files Browse the repository at this point in the history
* feat: add type declaration

* Reorder package.json entries

Co-authored-by: Marco Fugaro <marco.fugaro@gmail.com>
  • Loading branch information
kingyue737 and marcofugaro authored Aug 29, 2022
1 parent 4af3dc8 commit 3d4530a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"type": "commonjs",
"main": "./src/index.js",
"exports": "./src/index.js",
"types": "./src/index.d.ts",
"engines": {
"node": ">=12"
},
Expand Down
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const browserslistToEsbuild: (browserslistConfig?: string[] | string) => string[]
export default browserslistToEsbuild

0 comments on commit 3d4530a

Please sign in to comment.