From 82154364d82719e750fbbe5f10dfcf1776254a50 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 2 May 2023 16:08:46 +0200 Subject: [PATCH] fix: update lit example to properly ignore error --- examples/framework-lit/src/pages/index.astro | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/framework-lit/src/pages/index.astro b/examples/framework-lit/src/pages/index.astro index 1c7b45ce8983..a351b82487ea 100644 --- a/examples/framework-lit/src/pages/index.astro +++ b/examples/framework-lit/src/pages/index.astro @@ -21,12 +21,15 @@ import { MyCounter } from '../components/my-counter.js'; { - /** - * Our VS Code extension does not currently properly typecheck attributes on Lit components - * As such, the following code will result in a TypeScript error inside the editor, nonetheless, it works in Astro! - */ + ( + /** + * Our editor tooling does not currently properly typecheck attributes on imported Lit components. As such, without a + * pragma directive telling TypeScript to ignore the error, the line below will result in an error in the editor. + * Nonetheless, this code works in Astro itself! + */ + // @ts-expect-error + + ) } - {/** @ts-expect-error */} -