tianji/src/server/init.ts

7 lines
145 B
TypeScript
Raw Normal View History

(BigInt.prototype as any).toJSON = function () {
const int = Number.parseInt(this.toString());
return int ?? this.toString();
};
export {};