From d9bd7cf5ce4086d9dd59e372ca25d4c4cfdb05f6 Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:54:04 +0200 Subject: [PATCH] fix: tsc errors in components (#8293) * fix: tsc errors in components.ts * chore: changeset --- .changeset/nervous-beans-argue.md | 5 +++++ packages/astro/components/index.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/nervous-beans-argue.md diff --git a/.changeset/nervous-beans-argue.md b/.changeset/nervous-beans-argue.md new file mode 100644 index 000000000000..2d08ca6115a1 --- /dev/null +++ b/.changeset/nervous-beans-argue.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix `tsc` errors inside `astro/components/index.ts` diff --git a/packages/astro/components/index.ts b/packages/astro/components/index.ts index 864c7cc3bbdf..13ab357a472d 100644 --- a/packages/astro/components/index.ts +++ b/packages/astro/components/index.ts @@ -1,2 +1,6 @@ +// The `ts-expect-error` 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 export { default as Code } from './Code.astro'; +// @ts-expect-error export { default as Debug } from './Debug.astro';