@nestjs/class-transformer
Version:
Fork of the class-transformer package. Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors
18 lines (17 loc) • 530 B
TypeScript
import { ExposeOptions } from '..';
/**
* This object represents metadata assigned to a property via the @Expose decorator.
*/
export interface ExposeMetadata {
target: Function;
/**
* The property name this metadata belongs to on the target (class or property).
*
* Note: If the decorator is applied to a class the propertyName will be undefined.
*/
propertyName: string | undefined;
/**
* Options passed to the @Expose operator for this property.
*/
options: ExposeOptions;
}