File

src/user/dtos/update-user-interests.dto.ts

Index

Properties

Properties

Public interests
Type : string[]
Decorators :
@ApiProperty({description: 'An array of interests', type: 'string', isArray: true, example: undefined})
@IsArray()
import { ApiProperty } from "@nestjs/swagger";
import { IsArray } from "class-validator";

export class UpdateUserProfileInterestsDto {
  @ApiProperty({
    description: "An array of interests",
    type: "string",
    isArray: true,
    example: ["javascript", "react"],
  })
  @IsArray()
  public interests: string[];
}

results matching ""

    No results matching ""