UNPKG

@dipscope/type-manager

Version:

Transform JSON strings or plain objects into JS class instances.

15 lines 961 B
import { GenericArgument } from './generic-argument'; import { PropertyDecorator } from './property-decorator'; import { PropertyOptions } from './property-options'; import { TypeArgument } from './type-argument'; /** * Property decorator. * * @param {TypeArgument<TObject>|Array<GenericArgument<any>>|PropertyOptions<TObject>} x Type argument, generic arguments or property options. * @param {Array<GenericArgument<any>>|PropertyOptions<TObject>} y Generic arguments or property options if first parameter is type argument. * @param {PropertyOptions<TObject>} z Property options if second parameter are generic arguments. * * @returns {PropertyDecorator} Property decorator. */ export declare function Property<TObject>(x?: TypeArgument<TObject> | Array<GenericArgument<any>> | PropertyOptions<TObject>, y?: Array<GenericArgument<any>> | PropertyOptions<TObject>, z?: PropertyOptions<TObject>): PropertyDecorator; //# sourceMappingURL=property.d.ts.map