tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

TypeScript declare module doesn't resolve for wildcards syntax #289

Closed shir0u closed 1 year ago

shir0u commented 2 years ago

For example, in index.d.ts we define override for importing from different extensions, in this case, .scss.

declare module '*.scss' {
  export function renderStyles(vars: {[prop: string]: string}): void;
}

Then in app.svelte:

Screen Shot 2022-05-14 at 10 48 24 am

But in app.ts works fine:

Screen Shot 2022-05-14 at 10 49 11 am
tomblachut commented 1 year ago

We made lots of improvements around this problem during the last year. If the issue still persist please open another issue on YouTrack.