Skip to content

Commit 0627302

Browse files
committed
refactor(models): use native BigInt in JSON-bigint parsing
1 parent fe6bfd2 commit 0627302

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

models/ObjectSerializer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ const arraySuffix = ">";
218218
const mapPrefix = "{ [key: string]: ";
219219
const mapSuffix = "; }";
220220

221-
const JSONbig = require('json-bigint');
221+
const JSONbig = require('json-bigint')({
222+
useNativeBigInt: true,
223+
});
222224

223225
export class ObjectSerializer {
224226
public static findCorrectType(data: any, expectedType: string) {

0 commit comments

Comments
 (0)