1.0.84 • Published 12 months ago
@webage/property v1.0.84
property
Validation and Documentation decorator
Eample
@Dto()
export class CreateSampleDto {
@Property({ type: 'string', minLength: 3, maxLength: 100, format: 'email', isArray: false })
sample: string;
@Property({ type: 'object', target: () => TargetClass, isArray: false })
object: TargetClass;
}