File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ const INDEXOF_REGEX = /(?!indexof)\((\w+)\)/;
17
17
18
18
export type PlainObject = { [ property : string ] : any } ;
19
19
export type Select < T > = string | keyof T | Array < keyof T > ;
20
- export type OrderBy < T > = string | OrderByOptions < T > | Array < OrderByOptions < T > > | { [ P in keyof T ] ?: OrderBy < T [ P ] > } ;
20
+ export type NestedOrderBy < T > = { [ P in keyof T ] ?: T [ P ] extends Array < infer E > ? OrderBy < E > : OrderBy < T [ P ] > }
21
+ export type OrderBy < T > = string | OrderByOptions < T > | Array < OrderByOptions < T > > | NestedOrderBy < T > ;
21
22
export type Filter = string | PlainObject | Array < string | PlainObject > ;
22
23
export type NestedExpandOptions < T > = { [ P in keyof T ] ?: ( T [ P ] extends Array < infer E > ? Partial < ExpandOptions < E > > : Partial < ExpandOptions < T [ P ] > > ) } ;
23
24
export type Expand < T > = string | keyof T | NestedExpandOptions < T > | Array < keyof T | NestedExpandOptions < T > > | Array < string | NestedExpandOptions < T > > ;
You can’t perform that action at this time.
0 commit comments