File

src/star-search/dtos/update-thread-history.dto.ts

Index

Properties

Properties

Optional mood
Type : number
Decorators :
@IsNumber()
@IsOptional()
@IsEnum(StarSearchThreadHistoryMoodEnum)
import { IsEnum, IsNumber, IsOptional } from "class-validator";

export enum StarSearchThreadHistoryMoodEnum {
  positive = 1,
  neutral = 0,
  negative = -1,
}

export class UpdateStarSearchThreadHistoryDto {
  @IsNumber()
  @IsOptional()
  @IsEnum(StarSearchThreadHistoryMoodEnum)
  mood?: number;
}

results matching ""

    No results matching ""