JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Add an incompleteTypes > implicitGenerics fixer for functions

Open
#754 0 comments 0 reactions 0 assignees View on GitHub
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

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.