svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

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

Open NyxCode opened this issue 2 years ago • 0 comments

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".

NyxCode avatar Jul 31 '22 16:07 NyxCode