JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Expand incompleteTypes property fixes to referenced extended generics

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

Description

Similar to #180, but with function parameters of the generic type:

```diff
class Component {
setState(newState: Partial | ((oldState: TState) => TState)) { }
}

+ type ClickableState = {
+ clicks: number,
+ }

- class Clickable extends Component {
+ class Clickable extends Component {
state = {
clicks: 0,
};

click() {
this.setState(oldState => ({
clicks: oldState.clicks + 1,
}));
}
}
```

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.