tomblachut / svelte-intellij

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

Auto-import does not emit `import type` for types #300

Closed NyxCode closed 1 year ago

NyxCode commented 2 years ago

When auto-importing TypeScript types, the plugin inserts a normal import { Type1, Type2 } from "somewhere" import, even though compilerOptions.importNotUsedAsValues is set to "error" in .svelte-kit/tsconfig.json.
The proper import would be import type { Type1, Type2 } from "somewhere".

tomblachut commented 1 year ago

Works in 2023.1/2023.2