Skip to content

Commit

Permalink
Use a .ts file to export built-in components so they're typed (#3927)
Browse files Browse the repository at this point in the history
* Use a .ts file to export built-in components so they automatically have types

* Add changeset
  • Loading branch information
Princesseuh authored Jul 14, 2022
1 parent 636881e commit 7c5c410
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/perfect-games-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Updated `astro/components` exports to a `.ts` file so it's automatically typed
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"./app": "./dist/core/app/index.js",
"./app/node": "./dist/core/app/node.js",
"./client/*": "./dist/runtime/client/*",
"./components": "./components/index.js",
"./components": "./components/index.ts",
"./components/*": "./components/*",
"./debug": "./components/Debug.astro",
"./internal/*": "./dist/runtime/server/*",
Expand Down

0 comments on commit 7c5c410

Please sign in to comment.