Skip to content

Instantly share code, notes, and snippets.

@AntoineDrouhin
Created August 12, 2020 16:08
Show Gist options
  • Save AntoineDrouhin/7ba65e2c1a6fc23c71c3fffd765c9277 to your computer and use it in GitHub Desktop.
Save AntoineDrouhin/7ba65e2c1a6fc23c71c3fffd765c9277 to your computer and use it in GitHub Desktop.
convert
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