From a32f8a74aaa924dd4f552b8949dee70956345520 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 21 Jan 2023 18:41:58 +0100 Subject: [PATCH] support BigInt serialization --- deno-client/mod.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deno-client/mod.ts b/deno-client/mod.ts index 52ed882ec5..41d8860282 100644 --- a/deno-client/mod.ts +++ b/deno-client/mod.ts @@ -7,6 +7,12 @@ export { UserService, WorkspaceService } from './windmill-api/index.ts' + +// @ts-ignore: Otherwise BigInt is not supported for export +BigInt.prototype.toJSON = function () { + return this.toString(); +}; + export { pgSql, pgClient } from './pg.ts' export { mySql, mysqlClient } from './mysql.ts'