Fix TypeScript type errors across multiple files
This commit is contained in:
@@ -5,7 +5,7 @@ export const KAFKA = 'kafka';
|
||||
export const KAFKA_PRODUCER = 'kafka-producer';
|
||||
|
||||
// Fixes issue with converting bigint values
|
||||
BigInt.prototype.toJSON = function () {
|
||||
(BigInt.prototype as any).toJSON = function () {
|
||||
return Number(this);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user