UNPKG

reactotron-core-client

Version:

Grants Reactotron clients the ability to talk to a Reactotron server.

20 lines (19 loc) 513 B
/** * Fix BigInt serialization * BigInts are not supported by JSON.stringify in Hermes android. * This is a workaround. * https://github.com/GoogleChromeLabs/jsbi/issues/30#issuecomment-953187833 * https://github.com/infinitered/reactotron/issues/1436 */ declare global { interface BigInt { toJSON(): string; } } /** * Serializes an object to JSON. * * @param {any} source - The victim. */ declare function serialize(source: any, proxyHack?: boolean): string; export default serialize;