Use a .ts file to export built-in components so they're typed (#3927)
* Use a .ts file to export built-in components so they automatically have types * Add changeset
This commit is contained in:
parent
636881e185
commit
7c5c4106d7
3 changed files with 6 additions and 1 deletions
5
.changeset/perfect-games-shop.md
Normal file
5
.changeset/perfect-games-shop.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Updated `astro/components` exports to a `.ts` file so it's automatically typed
|
|
@ -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/*",
|
||||
|
|
Loading…
Reference in a new issue