JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Handle uninitialized variables as part of strictNullChecking

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
status: accepting prs type: bug
Dominant language
TypeScript
Stars
2.3k
Forks
47
Avg merge
15h 55m
Merged PRs (30d)
21

Description

```typescript
let results: string[];

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

results.length;
```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.