summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-09-01 23:20:42 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-01 23:20:42 +0200
commit405ad950173dadddc519cf1c2e7f2523bf5326a8 (patch)
treeab4c0cd23d0e7bdaa8c336707bca5ced53b3ee89
parent0ce0720c7f2c7ba21dddfea0b75d1e9b39c6a274 (diff)
downloadastro-405ad950173dadddc519cf1c2e7f2523bf5326a8.tar.gz
astro-405ad950173dadddc519cf1c2e7f2523bf5326a8.tar.zst
astro-405ad950173dadddc519cf1c2e7f2523bf5326a8.zip
fix: tsc complaining about astro imports again (#8367)
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';