JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Add a strictNullCheck fixer for indexed keys/values

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
area: new fixer status: proposal needed
Dominant language
TypeScript
Stars
2.3k
Forks
47
Avg merge
15h 55m
Merged PRs (30d)
21

Description

```typescript
const other: IStringDictionary = {
A: null
};
```

This should become `A: null!` or `IStringDictionary`, depending on #41.

Also relevant:

```typescript
const maybeKey: string | undefined = // ...
other[maybeKey];
```

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.