mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-26 06:11:14 +00:00
Remove BigInt
This commit is contained in:
parent
d886904888
commit
d866cae686
3 changed files with 1 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "lemmy-js-client",
|
"name": "lemmy-js-client",
|
||||||
"version": "0.17.2-rc.20",
|
"version": "0.17.2-rc.21",
|
||||||
"description": "A javascript / typescript client for Lemmy",
|
"description": "A javascript / typescript client for Lemmy",
|
||||||
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
|
|
|
@ -135,11 +135,6 @@ import { VerifyEmail } from "./types/VerifyEmail";
|
||||||
import { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
import { VerifyEmailResponse } from "./types/VerifyEmailResponse";
|
||||||
import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
|
import { UploadImage, UploadImageResponse, VERSION } from "./types/others";
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
BigInt.prototype["toJSON"] = function () {
|
|
||||||
return parseInt(this.toString());
|
|
||||||
};
|
|
||||||
|
|
||||||
enum HttpType {
|
enum HttpType {
|
||||||
Get = "GET",
|
Get = "GET",
|
||||||
Post = "POST",
|
Post = "POST",
|
||||||
|
|
|
@ -87,11 +87,6 @@ import { TransferCommunity } from "./types/TransferCommunity";
|
||||||
import { UserJoin } from "./types/UserJoin";
|
import { UserJoin } from "./types/UserJoin";
|
||||||
import { VerifyEmail } from "./types/VerifyEmail";
|
import { VerifyEmail } from "./types/VerifyEmail";
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
BigInt.prototype["toJSON"] = function () {
|
|
||||||
return parseInt(this.toString());
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
|
* Helps build lemmy websocket message requests, that you can use in your Websocket sends.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue