@finnair/path
Version:
Simple object path as array of strings and numbers
7 lines (6 loc) • 331 B
TypeScript
export type JsonReplacer = ((this: any, key: string, value: any) => any) | (number | string)[] | null;
export type JsonValue = string | boolean | number | JsonValue[] | null | JsonObject;
export type JsonObject = {
[key: string]: JsonValue;
};
export declare function jsonClone(input: any, replacer?: JsonReplacer): JsonValue;