Skip to content

Commit

Permalink
fix: tsc complaining about astro imports again (#8367)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Sep 1, 2023
1 parent 0ce0720 commit 405ad95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-cows-own.md
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
6 changes: 3 additions & 3 deletions packages/astro/components/index.ts
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';

0 comments on commit 405ad95

Please sign in to comment.