UNPKG

744 BTypeScriptView Raw
1import { TypeHelpOptions, TypeOptions } from '..';
2/**
3 * This object represents metadata assigned to a property via the @Type decorator.
4 */
5export interface TypeMetadata {
6 target: Function;
7 /**
8 * The property name this metadata belongs to on the target (property only).
9 */
10 propertyName: string;
11 /**
12 * The type guessed from assigned Reflect metadata ('design:type')
13 */
14 reflectedType: any;
15 /**
16 * The custom function provided by the user in the @Type decorator which
17 * returns the target type for the transformation.
18 */
19 typeFunction: (options?: TypeHelpOptions) => Function;
20 /**
21 * Options passed to the @Type operator for this property.
22 */
23 options: TypeOptions;
24}