Check out example codes for "get function return type typescript". It will help you in understanding the concepts better.

Code Example 1

type return_type = ReturnType<() => string>; // string
// or
function hello_world(): string {
  return "hello world";
}
type return_type = ReturnType<typeof hello_world>; // string

Learn ReactJs, React Native from akashmittal.com