SerializeToJson
SerializeToJson<
T
>:T
extendsJsonSerializableSet
<infer S> ?ReadonlyArray
<S
> :T
extendsJsonSerializableObject
?{ [P in keyof T]: SerializeToJson<T[P]> }
:T
extendsJsonSerializableArray
?SerializeToJson
<T
[number
]>[] :BigIntToHex
<SetToHex
<T
>>
A helper type that converts a widened JSON-serializable value to a JSON-serializable value. It replaces bigint with hex strings and sets with arrays.
Type Parameters
• T