Skip to content

Commit 578d257

Browse files
committed
fix: clarify use of @ts-ignore
1 parent dfeb085 commit 578d257

File tree

1 file changed

+9
-0
lines changed
  • docs/tutorialkit.dev/src/components/Layout

1 file changed

+9
-0
lines changed

docs/tutorialkit.dev/src/components/Layout/Head.astro

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ import Default from '@astrojs/starlight/components/Head.astro';
99
<script is:inline async src="https://www.googletagmanager.com/gtag/js?id=G-64MFE82HG5"></script>
1010

1111
<script is:inline>
12+
/**
13+
* We have all those @ts-ignore because the latest version of @astro/language-server
14+
* type check all scripts even if they are interpreted as JavaScript by the language
15+
* server.
16+
*
17+
* Given this script is kinda considered as external, we should do minimal changes
18+
* to it. Adding a single `@ts-nocheck` didn't work :'(
19+
*/
20+
1221
// @ts-ignore
1322
window.dataLayer = window.dataLayer || [];
1423

0 commit comments

Comments
 (0)