class-transformer
Version:
Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors
8 lines (7 loc) • 301 B
TypeScript
import { TransformFnParams, TransformOptions } from '../interfaces';
/**
* Defines a custom logic for value transformation.
*
* Can be applied to properties only.
*/
export declare function Transform(transformFn: (params: TransformFnParams) => any, options?: TransformOptions): PropertyDecorator;