diff options
author | 2023-09-01 23:20:42 +0200 | |
---|---|---|
committer | 2023-09-01 23:20:42 +0200 | |
commit | 405ad950173dadddc519cf1c2e7f2523bf5326a8 (patch) | |
tree | ab4c0cd23d0e7bdaa8c336707bca5ced53b3ee89 | |
parent | 0ce0720c7f2c7ba21dddfea0b75d1e9b39c6a274 (diff) | |
download | astro-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.md | 5 | ||||
-rw-r--r-- | packages/astro/components/index.ts | 6 |
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'; |