1 | import { ClassTransformOptions } from './interfaces';
|
2 | import { ClassConstructor } from './interfaces';
|
3 | export { ClassTransformer } from './ClassTransformer';
|
4 | export * from './decorators';
|
5 | export * from './interfaces';
|
6 | export * from './enums';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function classToPlain<T>(object: T, options?: ClassTransformOptions): Record<string, any>;
|
13 | export declare function classToPlain<T>(object: T[], options?: ClassTransformOptions): Record<string, any>[];
|
14 |
|
15 |
|
16 |
|
17 | export declare function instanceToPlain<T>(object: T, options?: ClassTransformOptions): Record<string, any>;
|
18 | export declare function instanceToPlain<T>(object: T[], options?: ClassTransformOptions): Record<string, any>[];
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare function classToPlainFromExist<T>(object: T, plainObject: Record<string, any>, options?: ClassTransformOptions): Record<string, any>;
|
27 | export declare function classToPlainFromExist<T>(object: T, plainObjects: Record<string, any>[], options?: ClassTransformOptions): Record<string, any>[];
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function plainToClass<T, V>(cls: ClassConstructor<T>, plain: V[], options?: ClassTransformOptions): T[];
|
34 | export declare function plainToClass<T, V>(cls: ClassConstructor<T>, plain: V, options?: ClassTransformOptions): T;
|
35 |
|
36 |
|
37 |
|
38 | export declare function plainToInstance<T, V>(cls: ClassConstructor<T>, plain: V[], options?: ClassTransformOptions): T[];
|
39 | export declare function plainToInstance<T, V>(cls: ClassConstructor<T>, plain: V, options?: ClassTransformOptions): T;
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export declare function plainToClassFromExist<T, V>(clsObject: T[], plain: V[], options?: ClassTransformOptions): T[];
|
48 | export declare function plainToClassFromExist<T, V>(clsObject: T, plain: V, options?: ClassTransformOptions): T;
|
49 |
|
50 |
|
51 |
|
52 | export declare function instanceToInstance<T>(object: T, options?: ClassTransformOptions): T;
|
53 | export declare function instanceToInstance<T>(object: T[], options?: ClassTransformOptions): T[];
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 | export declare function classToClassFromExist<T>(object: T, fromObject: T, options?: ClassTransformOptions): T;
|
62 | export declare function classToClassFromExist<T>(object: T, fromObjects: T[], options?: ClassTransformOptions): T[];
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 | export declare function serialize<T>(object: T, options?: ClassTransformOptions): string;
|
72 | export declare function serialize<T>(object: T[], options?: ClassTransformOptions): string;
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 | export declare function deserialize<T>(cls: ClassConstructor<T>, json: string, options?: ClassTransformOptions): T;
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | export declare function deserializeArray<T>(cls: ClassConstructor<T>, json: string, options?: ClassTransformOptions): T[];
|