Fixing bigint serialization. (#120)

This commit is contained in:
Dessalines 2023-05-15 12:23:50 -04:00 committed by GitHub
parent 6743d28f7f
commit 9439d2a5a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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());
}; };
/** /**