-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tsc complaining about astro imports again (#8367)
- Loading branch information
1 parent
0ce0720
commit 405ad95
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Fix `tsc` complaining about imports of `.astro` files in specific cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
// @ts-expect-error | ||
// @ts-ignore | ||
export { default as Code } from './Code.astro'; | ||
// @ts-expect-error | ||
// @ts-ignore | ||
export { default as Debug } from './Debug.astro'; |