mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
7 lines
338 B
TypeScript
7 lines
338 B
TypeScript
// @critical Must be imported before any module that can JSON-stringify Redux state
|
|
// (BigInt proto fields throw without toJSON). See .github/instructions/webclient.instructions.md#initialization-order.
|
|
(BigInt.prototype as unknown as { toJSON: () => string }).toJSON = function bigIntToJSON() {
|
|
return this.toString();
|
|
};
|
|
|
|
export {};
|