@kvaser/canking-api
Version:
CanKing API to communicate with the CanKing service using Node.js.
17 lines (16 loc) • 671 B
TypeScript
/**
* Custom JSON replacer function.
* Supports serialization of complex data types like Map and Set.
* @param key - The key being processed.
* @param value - The value associated with the key.
* @returns The value to be serialized.
*/
export declare function jsonReplacer(this: Record<string, unknown>, key: string, value: unknown): unknown;
/**
* Custom JSON reviver function.
* Supports deserialization of complex data types like Map and Set.
* @param _key - The key being processed.
* @param value - The value associated with the key.
* @returns The value to be deserialized.
*/
export declare function jsonReviver(_key: string, value: unknown): unknown;