convertToFP.d.ts 506 B

1234567891011121314151617
  1. import type { FPArity, FPFn, FPFnInput } from "../types.js";
  2. /**
  3. * Converts a function to a curried function that accepts arguments in reverse
  4. * order.
  5. *
  6. * @param fn - The function to convert to FP
  7. * @param arity - The arity of the function
  8. * @param curriedArgs - The curried arguments
  9. *
  10. * @returns FP version of the function
  11. *
  12. * @private
  13. */
  14. export declare function convertToFP<
  15. Fn extends FPFnInput,
  16. Arity extends FPArity,
  17. >(fn: Fn, arity: Arity, curriedArgs?: unknown[]): FPFn<Fn, Arity>;