Skip to content

Commit

Permalink
Merge pull request #55 from Xavier-IV/master
Browse files Browse the repository at this point in the history
#54 TypeError on SortBuildInput
  • Loading branch information
tada5hi committed Oct 10, 2022
2 parents 243ebbb + 53f4649 commit d5f816d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameter/sort/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type SortWithOperator<T extends Record<string, any>> =
KeyWithOptionalPrefix<keyof T, '-'> |
KeyWithOptionalPrefix<keyof T, '-'>[];

export type SortBuildInput<T> = {
export type SortBuildInput<T extends Record<string, any>> = {
[K in keyof T]?: T[K] extends OnlyScalar<T[K]> ?
`${SortDirection}` :
T[K] extends Date ?
Expand Down

0 comments on commit d5f816d

Please sign in to comment.