src/user/dtos/user-devstats.dto.ts
Properties |
|
Readonly Optional range |
Type : number
|
Default value : 30
|
Decorators :
@ApiPropertyOptional({description: 'Range in days to look for devstats', default: 30, type: 'integer'})
|
Defined in src/user/dtos/user-devstats.dto.ts:15
|
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;
}