Closed jp7837 closed 4 years ago
a.ts:
export const A = 1; export const A_unused = 2;
b:ts:
import("./a").then(A_imported => { console.log(A_imported.A); }); export const B_unused = 0;
tsconfig.json:
{ "compilerOptions": { "lib": ["ES2015", "DOM"] }, "files": [ "a.ts", "b.ts" ] }
Expected: A_unused, B_unused marked as unused Actual: A, A_unused, B_unused marked as unused.
A should not be marked as unused since it's referenced in B.
Thanks for fixing @mrseanryan ! May I ask when you think a new version would be published to NPM?
np at all - hopefully within next week or so.
@jp7837 @mrseanryan published as 6.1.0.
6.1.0
Thanks for this contrib!
a.ts:
b:ts:
tsconfig.json:
Expected: A_unused, B_unused marked as unused Actual: A, A_unused, B_unused marked as unused.
A should not be marked as unused since it's referenced in B.