Created
August 12, 2020 16:08
-
-
Save AntoineDrouhin/7ba65e2c1a6fc23c71c3fffd765c9277 to your computer and use it in GitHub Desktop.
convert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type ReplaceBigIntByString<T> = { | |
[K in keyof T]: | |
T[K] extends object | |
? ReplaceBigIntByString<T[K]> | |
: T[K] extends BigInt | |
? string | |
: T[K] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment