What does the ReturnType utility type extract?

TypeScript Associate Medium

TypeScript Associate — Medium

What does the ReturnType utility type extract?

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