Compare commits

...

1 commit

Author SHA1 Message Date
Dessalines
fe400ad463 Fixing bigint serialization. 2023-05-15 12:22:10 -04:00
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
// @ts-ignore // @ts-ignore
BigInt.prototype["toJSON"] = function () { BigInt.prototype["toJSON"] = function () {
return this.toString(); return parseInt(this.toString());
}; };
enum HttpType { enum HttpType {

View file

@ -89,7 +89,7 @@ import { VerifyEmail } from "./types/VerifyEmail";
// @ts-ignore // @ts-ignore
BigInt.prototype["toJSON"] = function () { BigInt.prototype["toJSON"] = function () {
return this.toString(); return parseInt(this.toString());
}; };
/** /**