UNPKG

class-transformer

Version:

Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors

14 lines (13 loc) 362 B
/** * Possible transformation options for the @Exclude decorator. */ export interface ExcludeOptions { /** * Expose this property only when transforming from plain to class instance. */ toClassOnly?: boolean; /** * Expose this property only when transforming from class instance to plain object. */ toPlainOnly?: boolean; }