Type alias GetReturnType<Function>Internal

GetReturnType<Function>: Function extends ((arg: any) => any) ? ReturnType<Function> : "Error: The left-hand side must be a function"

If the type is a function, return the return type of the function, otherwise it returns a type error

Remarks

Used to provide proper typing for apply.

See

Type Parameters

  • Function