File

src/module/team/team.dto.ts

Implements

ITeamDTO

Index

Properties

Properties

students
Type : string[]
Decorators :
@IsArray()
@IsString({each: true})
import { ITeamDTO } from '../../shared/model/Team';
import { IsArray, IsString } from 'class-validator';

export class TeamDTO implements ITeamDTO {
    @IsArray()
    @IsString({ each: true })
    students!: string[];
}

results matching ""

    No results matching ""