Skip to content

Commit 73125a6

Browse files
committed
fix: silence type error in old d.ts files
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
1 parent 0921d65 commit 73125a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/svelte2tsx/svelte-jsx.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/// <reference lib="dom" />
2+
// @ts-nocheck
3+
// nocheck because we don't want to adjust this anymore (only used for Svelte 3)
24

35
declare namespace svelteHTML {
46

packages/svelte2tsx/svelte-shims.d.ts

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy