I really like this utility! I love that TS has so many of them.
I found typing return types manually to be a great way to document the intent of the return and being clear around what id like to return as I write the hook.
But I like the utility when I don’t want to export the type.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Since we use ReturnType type we barely create Return type manually.
Take a look at this typescriptlang.org/docs/handbook/u...
I really like this utility! I love that TS has so many of them.
I found typing return types manually to be a great way to document the intent of the return and being clear around what id like to return as I write the hook.
But I like the utility when I don’t want to export the type.