1 | declare var flatten: FlatTypes.Flatten;
|
2 |
|
3 | export = flatten;
|
4 |
|
5 | declare namespace FlatTypes {
|
6 | interface FlattenOptions {
|
7 | delimiter?: string | undefined;
|
8 | safe?: boolean | undefined;
|
9 | maxDepth?: number | undefined;
|
10 | transformKey?: ((key: string) => string) | undefined;
|
11 | }
|
12 |
|
13 | interface Flatten {
|
14 | <TTarget, TResult>(
|
15 | target: TTarget,
|
16 | options?: FlattenOptions,
|
17 | ): TResult;
|
18 |
|
19 | flatten: Flatten;
|
20 | unflatten: Unflatten;
|
21 | }
|
22 |
|
23 | interface UnflattenOptions {
|
24 | delimiter?: string | undefined;
|
25 | object?: boolean | undefined;
|
26 | overwrite?: boolean | undefined;
|
27 | transformKey?: ((key: string) => string) | undefined;
|
28 | }
|
29 |
|
30 | interface Unflatten {
|
31 | <TTarget, TResult>(
|
32 | target: TTarget,
|
33 | options?: UnflattenOptions,
|
34 | ): TResult;
|
35 | }
|
36 | }
|
37 |
|
\ | No newline at end of file |