mirror of
https://github.com/luxfhe/example-poker.git
synced 2026-10-30 18:13:22 +00:00
4 lines
226 B
TypeScript
4 lines
226 B
TypeScript
// To be used in JSON.stringify when a field might be bigint
|
|
// https://wagmi.sh/react/faq#bigint-serialization
|
|
export const replacer = (_key: string, value: unknown) => (typeof value === "bigint" ? value.toString() : value);
|