Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-IV committed Oct 10, 2022
1 parent fa5590e commit 53f4649
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 53f4649

Please sign in to comment.