9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
import { TextEncoder, TextDecoder } from 'util';
|
|
|
|
(global as any).TextEncoder = TextEncoder;
|
|
(global as any).TextDecoder = TextDecoder;
|
|
|
|
(BigInt.prototype as any).toJSON = function () {
|
|
return this.toString();
|
|
};
|