Closed aquinan closed 3 years ago
Hi! Thanks for reporting.
@anstarovoyt can this be fixed without implementing LSP?
@aquinan as per your original problem you should write missing declarations instead of escaping from typechecker. It works across your whole project that way..
Below one-liner will suffice and make everything in a module typed as any
.
declare module "svelte-forms-lib";
more here https://justintimecoder.com/how-to-polyfil-missing-types-in-typescript/
it must be done on the IDE side. See https://youtrack.jetbrains.com/issue/WEB-48109
WEB-48109 will be fixed in 2020.3
When a module is imported in a svelte component's script tag that does not have type definitions, @ts-ignore does not suppress the context error. Also the context menu for the error in WebStorm does not suggest using @ts-ignore.