Is there a way to get the schema's type to infer if a property is required?
It feels like it needs to be specified in 2 places, eg
@Prop({ required: true, type: String })
name: string;
- We have the
requiredon theProp - The
nametype on the 2nd line is required, eg noname?
What happens if we have the following?
@Prop({ type: String })
name: string;
Is there some way to infer if a prop is required directly from the type?