Type alias GetArgumentType<Function>Internal

GetArgumentType<Function>: Function extends ((arg: infer A) => any) ? A : "Error: The left-hand side must be function"

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

Remarks

Used to provide proper typing for apply.

See

Type Parameters

  • Function