Open strager opened 8 months ago
The following is valid TypeScript if the imported x is a type-only declaration (e.g. an interface):
x
interface
import {x} from './mod'; x = 42; var x;
The following is invalid TypeScript even if the imported x is a runtime declaration:
import {x} from './mod'; x = 42;
We should fix quick-lint-js's variable analyzer to handle both of these cases properly.
The following is valid TypeScript if the imported
x
is a type-only declaration (e.g. aninterface
):The following is invalid TypeScript even if the imported
x
is a runtime declaration:We should fix quick-lint-js's variable analyzer to handle both of these cases properly.