TypeScript Associate — Medium
Key points
- ReturnType utility type extracts the return type of a function.
- It is useful for working with function return types.
- It is not used to extract parameter types or constructor return types.
- It specifically focuses on the return type of a function.
Ready to go further?
Related questions
