File

src/user/dtos/user-devstats.dto.ts

Index

Properties
  • Readonly Optional range

Properties

Readonly Optional range
Type : number
Default value : 30
Decorators :
@ApiPropertyOptional({description: 'Range in days to look for devstats', default: 30, type: 'integer'})
@Type(undefined)
@IsIn(['7', '30', '90', '180', '360'])
@IsInt()
@IsOptional()
import { ApiPropertyOptional } from "@nestjs/swagger";
import { Type } from "class-transformer";
import { IsOptional, IsIn, IsInt } from "class-validator";

export class UserDevstatsDto {
  @ApiPropertyOptional({
    description: "Range in days to look for devstats",
    default: 30,
    type: "integer",
  })
  @Type(() => Number)
  @IsIn([7, 30, 90, 180, 360])
  @IsInt()
  @IsOptional()
  readonly range?: number = 30;
}

results matching ""

    No results matching ""