UNPKG

664 BTypeScriptView Raw
1import { TransformOptions } from '..';
2import { TransformFnParams } from './transform-fn-params.interface';
3/**
4 * This object represents metadata assigned to a property via the @Transform decorator.
5 */
6export interface TransformMetadata {
7 target: Function;
8 /**
9 * The property name this metadata belongs to on the target (property only).
10 */
11 propertyName: string;
12 /**
13 * The custom transformation function provided by the user in the @Transform decorator.
14 */
15 transformFn: (params: TransformFnParams) => any;
16 /**
17 * Options passed to the @Transform operator for this property.
18 */
19 options: TransformOptions;
20}