quick-lint-js icon indicating copy to clipboard operation
quick-lint-js copied to clipboard

TypeScript: Distinguish 'import {A} from "mod"' from 'import * as A from "mod"'

Open strager opened this issue 3 years ago • 0 comments

For import {A} from "mod", we don't know if A is type-only (e.g. interface), runtime-only (e.g. variable), or type-and-runtime (e.g. class). For import * as A from "mod", we know that A is runtime-only. Give this distinction to the variable analyzer so it can make better diagnostics.

strager avatar Jul 15 '22 03:07 strager