class-transformer
Version:
Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors
8 lines (7 loc) • 337 B
TypeScript
import { ClassTransformOptions, ClassConstructor } from '../interfaces';
/**
* Return the class instance only with the exposed properties.
*
* Can be applied to functions and getters/setters only.
*/
export declare function TransformPlainToInstance(classType: ClassConstructor<any>, params?: ClassTransformOptions): MethodDecorator;