Skip to content

Commit

Permalink
fix #1874 - fix TIME return type (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale authored Jan 31, 2022
1 parent 21270ba commit 5147521
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/client/lib/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ type ConvertArgumentType<Type, ToType> =
Type extends Set<infer Member> ? Set<ConvertArgumentType<Member, ToType>> : (
Type extends Map<infer Key, infer Value> ? Map<Key, ConvertArgumentType<Value, ToType>> : (
Type extends Array<infer Member> ? Array<ConvertArgumentType<Member, ToType>> : (
Type extends Record<keyof any, any> ? {
[Property in keyof Type]: ConvertArgumentType<Type[Property], ToType>
} : Type
Type extends Date ? Type : (
Type extends Record<keyof any, any> ? {
[Property in keyof Type]: ConvertArgumentType<Type[Property], ToType>
} : Type
)
)
)
)
Expand Down

0 comments on commit 5147521

Please sign in to comment.