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:
parent
0ce0720c7f
commit
405ad95017
2 changed files with 8 additions and 3 deletions
5
.changeset/flat-cows-own.md
Normal file
5
.changeset/flat-cows-own.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix `tsc` complaining about imports of `.astro` files in specific cases
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue