SerializeToJson
SerializeToJson<
T
>:T
extendsError
&object
?object
:T
extendsJsonSerializableSet
<infer S> ?ReadonlyArray
<S
> :T
extendsJsonSerializableObject
?{ [P in keyof T]: SerializeToJson<T[P]> }
:T
extendsJsonSerializableArray
?SerializeToJson
<T
[number
]>[] :BigIntToHex
<SetToHex
<T
>>
Type parameters
• T
Source
procedures/src/utils/SerializeToJson.ts:22