support BigInt serialization

This commit is contained in:
Ruben Fiszel
2023-01-21 18:41:58 +01:00
parent 4d22bc5809
commit a32f8a74aa
+6
View File
@@ -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'