devtypes
    Preparing search index...

    Type Alias Curry<F>

    Curry: F extends (...args: infer Args) => infer R
        ? Args extends [infer A, ...(infer Rest)]
            ? (a: A) => Curry<(...args: Rest) => R>
            : R
        : never

    Curry a function type (simple 1-arg recursion)

    Type Parameters

    • F
    type Fn = (a: string, b: number, c: boolean) => void;
    type CurriedFn = Curry<Fn>; // (a: string) => (b: number) => (c: boolean) => void