* Refactor fix-all-missing-imports to be reusable by other codefixes * Migrate infer-from-usage to use ImportAdder * Add infer from usage test importing more than one thing in a single fix * Migrate implement interface / abstract members fixes to use ImportAdder * Update old tests * Use type-only imports when it would be an error not to * Add another test * Rename stuff
17 lines
261 B
TypeScript
17 lines
261 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @importsNotUsedAsValues: error
|
|
|
|
// @Filename: types.ts
|
|
////export class A {}
|
|
|
|
// @Filename: index.ts
|
|
////const a: /**/A
|
|
|
|
goTo.marker("");
|
|
verify.importFixAtPosition([
|
|
`import type { A } from "./types";
|
|
|
|
const a: A`
|
|
]);
|