mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 22:01:12 +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
|
// @ts-ignore
|
||||||
BigInt.prototype["toJSON"] = function () {
|
BigInt.prototype["toJSON"] = function () {
|
||||||
return this.toString();
|
return parseInt(this.toString());
|
||||||
};
|
};
|
||||||
|
|
||||||
enum HttpType {
|
enum HttpType {
|
||||||
|
|
|
@ -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());
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue