Type alias UFReplaceReturnType<T, TNewReturn>

UFReplaceReturnType<T, TNewReturn>: ((...args) => TNewReturn)

Helper type to replace a return type of a function with a new type

References: https://stackoverflow.com/a/50014868/968451 https://github.com/reduxjs/redux-thunk/issues/213

Type Parameters

  • T extends ((...args) => any)
  • TNewReturn

Type declaration