UNPKG

@bit-gpt/h402

Version:

BitGPT's 402 open protocol for blockchain-native payments

11 lines 514 B
/** * Converts data to a JSON-safe format by handling special cases like BigInt, Date, Map, Set, etc. * * @param data - The data to convert to JSON-safe format * @param seen - WeakSet to handle circular references (internal use) * @returns The JSON-safe version of the data * @throws {Error} If the input is not a valid object or array */ declare function toJsonSafe<T extends object>(data: T, seen?: WeakSet<object>): Record<string, unknown>; export { toJsonSafe }; //# sourceMappingURL=toJsonSafe.d.ts.map