JoshuaKGoldberg / JoshuaKGoldberg/TypeStat
Add an incompleteTypes > implicitGenerics fixer for functions
Open
area: fixers
status: accepting prs
type: enhancement
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 47
- Avg merge
- 15h 55m
- Merged PRs (30d)
- 21
Description
### 🚀 Feature Request
React's `useState` is a common example of this, but generally some functions may need a generic explicitly stated:
```ts
const [name, useName] = useState();
```
#### Existing Behavior
No such considerations exist in TypeStat.
#### Change Proposal
Similar to class and variable implicit generic inferences, there should also be one for functions.
Contributor guide
Assessment
This issue has not been assessed yet.