summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.changeset/flat-cows-own.md5
-rw-r--r--packages/astro/components/index.ts6
2 files changed, 8 insertions, 3 deletions
diff --git a/.changeset/flat-cows-own.md b/.changeset/flat-cows-own.md
new file mode 100644
index 000000000..68b4589af
--- /dev/null
+++ b/.changeset/flat-cows-own.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix `tsc` complaining about imports of `.astro` files in specific cases
diff --git a/packages/astro/components/index.ts b/packages/astro/components/index.ts
index 13ab357a4..e5ac0251d 100644
--- a/packages/astro/components/index.ts
+++ b/packages/astro/components/index.ts
@@ -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';