\@Prop() value: string; \@Prop() value: number; \@Prop() value: boolean; \@Prop() value: Date; \@Prop({ type: CustomObject }) value: CustomObject; \@Prop({ type: [String] }) value: string[]; \@Prop({ enum: EnumClss }) value: EnumClss; \@Prop({ type:[EnumClss] enum: EnumClss }) value: EnumClss;## Notes- properties are optional by defualt if required is not set true Copy
\@Prop() value: string; \@Prop() value: number; \@Prop() value: boolean; \@Prop() value: Date; \@Prop({ type: CustomObject }) value: CustomObject; \@Prop({ type: [String] }) value: string[]; \@Prop({ enum: EnumClss }) value: EnumClss; \@Prop({ type:[EnumClss] enum: EnumClss }) value: EnumClss;## Notes- properties are optional by defualt if required is not set true
Open api property options
Optional
property validation options from class-validator
-- PropertyDecorator
Examples