@nestjs/class-transformer
Version:
Fork of the class-transformer package. Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors
16 lines (15 loc) • 729 B
TypeScript
import { ClassTransformOptions, TypeMetadata } from './interfaces';
import { TransformationType } from './enums';
export declare class TransformOperationExecutor {
private transformationType;
private options;
private recursionStack;
constructor(transformationType: TransformationType, options: ClassTransformOptions);
transform(source: Record<string, any> | Record<string, any>[] | any, value: Record<string, any> | Record<string, any>[] | any, targetType: Function | TypeMetadata, arrayType: Function, isMap: boolean, level?: number): any;
private applyCustomTransformations;
private isCircular;
private getReflectedType;
private getKeys;
private checkVersion;
private checkGroups;
}