• Type Parameters

    • B extends string
    • O extends string | number | Record<string, any>

    Parameters

    • orderby: B
    • order: O

    Returns { [key in typeof orderby]: typeof order }

  • Type Parameters

    • B extends string
    • O

    Parameters

    • orderby: B

    Returns Record<string, number>

  • Type Parameters

    • B extends Record<string, number>
    • O

    Parameters

    • orderby: B

    Returns B

  • Type Parameters

    • B extends string | Record<string, number | Record<string, any>>
    • O extends string | number | Record<string, any>

    Parameters

    • orderby: B
    • Optionalorder: O

    Returns Record<string, number | string | object>