- parseArgs<B extends string, O extends string | number | Record<string, any>>(
orderby: B,
order: O,
): { [key in typeof orderby]: typeof order } Type Parameters
- B extends string
- O extends string | number | Record<string, any>
Returns { [key in typeof orderby]: typeof order }
- parseArgs<B extends string, O>(orderby: B): Record<string, number>
Returns Record<string, number>
- parseArgs<B extends Record<string, number>, O>(orderby: B): B
Type Parameters
- B extends Record<string, number>
- O
Returns B
- parseArgs<
B extends string
| Record<string, number | Record<string, any>>,
O extends string | number | Record<string, any>,
>(
orderby: B,
order?: O,
): Record<string, number | string | object> Type Parameters
- B extends string | Record<string, number | Record<string, any>>
- O extends string | number | Record<string, any>
Parameters
- orderby: B
Optional
order: O
Returns Record<string, number | string | object>