Bug Report
π Search Terms
importsNotUsedAsValues
π Version
4.5.3, when specifier-specific type keyword was added.
β― Playground Link
The playground doesn't allow setting importsNotUsedAsValues
π» Code
// this works
import type { VFC } from 'react';
export const Hello: VFC<{}> = () => <main>Hello World</main>;
and:
// this reports diagnostics
import { type VFC } from 'react';
export const Hello: VFC<{}> = () => <main>Hello World</main>;
should behave the same (no error)
π Actual behavior
This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.ts(1371) on second piece of code.
π Expected behavior
Both examples should not report diagnostics.
@andrewbranch I feel like this is your cup of tea. :)
Bug Report
π Search Terms
importsNotUsedAsValuesπ Version
4.5.3, when specifier-specific type keyword was added.
β― Playground Link
The playground doesn't allow setting
importsNotUsedAsValuesπ» Code
and:
should behave the same (no error)
π Actual behavior
This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.ts(1371)on second piece of code.π Expected behavior
Both examples should not report diagnostics.
@andrewbranch I feel like this is your cup of tea. :)