Skip to content

Commit

Permalink
fix: silence type error in old d.ts files
Browse files Browse the repository at this point in the history
svelte-jsx and svelte-shims are used for Svelte 3 only, and are likely out of date, yet we don't want to invest time into adjusting them anymore, therefore silence any type errors in it.
Helps with #2498
  • Loading branch information
dummdidumm committed Sep 18, 2024
1 parent 0921d65 commit 73125a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/svelte2tsx/svelte-jsx.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference lib="dom" />
// @ts-nocheck
// nocheck because we don't want to adjust this anymore (only used for Svelte 3)

declare namespace svelteHTML {

Expand Down
2 changes: 2 additions & 0 deletions packages/svelte2tsx/svelte-shims.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @ts-nocheck
// nocheck because we don't want to adjust this anymore (only used for Svelte 3)
// Whenever a ambient declaration changes, its number should be increased
// This way, we avoid the situation where multiple ambient versions of svelte2tsx
// are loaded and their declarations conflict each other
Expand Down

0 comments on commit 73125a6

Please sign in to comment.