TypeStat icon indicating copy to clipboard operation
TypeStat copied to clipboard

Add an incompleteTypes > implicitGenerics fixer for functions

Open JoshuaKGoldberg opened this issue 4 years ago • 0 comments
trafficstars

🚀 Feature Request

React's useState is a common example of this, but generally some functions may need a generic explicitly stated:

const [name, useName] = useState<string>();

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.

JoshuaKGoldberg avatar Dec 05 '20 18:12 JoshuaKGoldberg