Fixing bigint serialization. (#120)
This commit is contained in:
parent
6743d28f7f
commit
9439d2a5a9
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
|
|||
|
||||
// @ts-ignore
|
||||
BigInt.prototype["toJSON"] = function () {
|
||||
return this.toString();
|
||||
return parseInt(this.toString());
|
||||
};
|
||||
|
||||
enum HttpType {
|
||||
|
|
|
@ -89,7 +89,7 @@ import { VerifyEmail } from "./types/VerifyEmail";
|
|||
|
||||
// @ts-ignore
|
||||
BigInt.prototype["toJSON"] = function () {
|
||||
return this.toString();
|
||||
return parseInt(this.toString());
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue