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:
Erika 2022-07-14 14:33:10 -04:00 committed by GitHub
parent 636881e185
commit 7c5c4106d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Updated `astro/components` exports to a `.ts` file so it's automatically typed

View file

@ -35,7 +35,7 @@
"./app": "./dist/core/app/index.js", "./app": "./dist/core/app/index.js",
"./app/node": "./dist/core/app/node.js", "./app/node": "./dist/core/app/node.js",
"./client/*": "./dist/runtime/client/*", "./client/*": "./dist/runtime/client/*",
"./components": "./components/index.js", "./components": "./components/index.ts",
"./components/*": "./components/*", "./components/*": "./components/*",
"./debug": "./components/Debug.astro", "./debug": "./components/Debug.astro",
"./internal/*": "./dist/runtime/server/*", "./internal/*": "./dist/runtime/server/*",