* When every import is unused, error on the entire import declaration * Code review * Store key in map value
18 lines
322 B
TypeScript
18 lines
322 B
TypeScript
// @noUnusedLocals: true
|
|
|
|
// @Filename: /a.ts
|
|
export const a = 0;
|
|
export const b = 0;
|
|
export default 0;
|
|
|
|
// @Filename: /b.ts
|
|
import d1, { a as a1, b as b1 } from "./a";
|
|
import d2, * as ns from "./a";
|
|
|
|
import d3, { a as a2, b as b2 } from "./a";
|
|
d3;
|
|
import d4, * as ns2 from "./a";
|
|
d4;
|
|
import d5, * as ns3 from "./a";
|
|
ns3;
|