Skip to content

Commit

Permalink
Merge pull request #2091 from wes-goulet/export-type
Browse files Browse the repository at this point in the history
feat: declare "types" in package.json to make consuming types easier
  • Loading branch information
zachleat authored Dec 7, 2022
2 parents d3bdc3b + 0339871 commit f29d1f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"access": "public"
},
"main": "src/Eleventy.js",
"types": "src/index.d.ts",
"bin": {
"eleventy": "./cmd.js"
},
Expand Down
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import UserConfig from "./UserConfig";

export { UserConfig };

0 comments on commit f29d1f6

Please sign in to comment.