UNPKG

433 BTypeScriptView Raw
1export interface FlattenOptions {
2 delimiter?: string;
3 maxDepth?: number;
4 safe?: boolean;
5 transformKey?: (key: string) => string;
6}
7
8export function flatten<T, R>(target: T, options?: FlattenOptions): R;
9
10export interface UnflattenOptions {
11 delimiter?: string;
12 object?: boolean;
13 overwrite?: boolean;
14 transformKey?: (key: string) => string;
15}
16
17export function unflatten<T, R>(target: T, options?: UnflattenOptions): R;