0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix: tsc complaining about astro imports again (#8367)

This commit is contained in:
Erika 2023-09-01 23:20:42 +02:00 committed by GitHub
parent 0ce0720c7f
commit 405ad95017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix `tsc` complaining about imports of `.astro` files in specific cases

View file

@ -1,6 +1,6 @@
// The `ts-expect-error` comments here are necessary because we're importing this file inside the `astro:components` // The `ts-ignore` comments here are necessary because we're importing this file inside the `astro:components`
// virtual module's types, which means that `tsc` will try to resolve these imports. Don't mind the editor errors. // virtual module's types, which means that `tsc` will try to resolve these imports. Don't mind the editor errors.
// @ts-expect-error // @ts-ignore
export { default as Code } from './Code.astro'; export { default as Code } from './Code.astro';
// @ts-expect-error // @ts-ignore
export { default as Debug } from './Debug.astro'; export { default as Debug } from './Debug.astro';