FPFn
FP function interface. It infers the arity of the function and returns the corresponding FP function interface.
type FPFn<Fn extends FPFnInput, Arity extends FPArity> = Arity extends 4 ? FPFn4<ReturnType<Fn>, Parameters<Fn>[3], Parameters<Fn>[2], Parameters<Fn>[1], Parameters<Fn>[0]> : Arity extends 3 ? FPFn3<ReturnType<Fn>, Parameters<Fn>[2], Parameters<Fn>[1], Parameters<Fn>[0]> : Arity extends 2 ? FPFn2<ReturnType<Fn>, Parameters<Fn>[1], Parameters<Fn>[0]> : Arity extends 1 ? FPFn1<ReturnType<Fn>, Parameters<Fn>[0]> : never;
§Type
§
Arity extends 4 ? FPFn4<ReturnType<Fn>, Parameters<Fn>[3], Parameters<Fn>[2], Parameters<Fn>[1], Parameters<Fn>[0]> : Arity extends 3 ? FPFn3<ReturnType<Fn>, Parameters<Fn>[2], Parameters<Fn>[1], Parameters<Fn>[0]> : Arity extends 2 ? FPFn2<ReturnType<Fn>, Parameters<Fn>[1], Parameters<Fn>[0]> : Arity extends 1 ? FPFn1<ReturnType<Fn>, Parameters<Fn>[0]> : never
[src]