Field


 @Field<T extends ReturnTypeFuncValue>(typeOrOptions?: ReturnTypeFunc<T> | FieldOptionsExtractor<T>, fieldOptions?: FieldOptionsExtractor<T>)

Parameters

Option Type Description
typeOrOptions ReturnTypeFunc | FieldOptionsExtractor

Optional. Default is undefined.

fieldOptions FieldOptionsExtractor

Optional. Default is undefined.

Returns

PropertyDecorator & MethodDecorator