mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-22 19:01:27 +00:00
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