TypeStat icon indicating copy to clipboard operation
TypeStat copied to clipboard

Handle uninitialized variables as part of strictNullChecking

Open JoshuaKGoldberg opened this issue 6 years ago • 0 comments

let results: string[];

immediately(() => {
    results = ["foo"];
});

results.length;

This should change to let results!: string[]; if strictNullChecking is enabled.

JoshuaKGoldberg avatar Dec 24 '18 17:12 JoshuaKGoldberg