TypeScript Version: 3.8.0-dev.20200104
Search Terms:
Code
import type {SourceFile} from 'typescript';
const file: SourceFile = createSourceFile(
While typing createSourceFile use auto import.
Expected behavior:
Adds a named import for createSourceFile and removes the type keyword from the import.
Actual behavior:
Adds a named import for createSourceFile while keeping it a type-only import. This causes an error as createSourceFile does not exist in the type space.
Related Issues: Introduced by #35200 Andrew Branch (@andrewbranch)
TypeScript Version: 3.8.0-dev.20200104
Search Terms:
Code
While typing
createSourceFileuse auto import.Expected behavior:
Adds a named import for
createSourceFileand removes thetypekeyword from the import.Actual behavior:
Adds a named import for
createSourceFilewhile keeping it a type-only import. This causes an error ascreateSourceFiledoes not exist in the type space.Related Issues: Introduced by #35200 Andrew Branch (@andrewbranch)