type-transformer
Version:
Transformation / serialization / deserialization of plain JavaScript objects to typed objects and vice versa
19 lines (18 loc) • 861 B
TypeScript
import { ExposeOptions } from './schema';
import { SelectFunction } from './selection';
/**
* Marks a property or class as included in the process of transformation.
*/
export declare function expose(options?: ExposeOptions): (object: Object | Function, propertyName?: string | undefined) => void;
/**
* Marks a property or class as excluded in the process of transformation.
*/
export declare function exclude(): (object: Object | Function, propertyName?: string | undefined) => void;
/**
* Define a function that dynamically selects a property.
*/
export declare function select(selectFn: SelectFunction): (object: Object | Function, propertyName?: string | undefined) => void;
/**
* Creates a schema for a class that inherits from the schemas of the parent classes.
*/
export declare function inherit(): (object: Function) => void;