Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

356 B
Raw Blame
import { IsDefined, IsIn, IsNumber, IsOptional } from 'class-validator';

export class StarsListDto {
  @IsNumber()
  @IsDefined()
  page: number;

  @IsOptional()
  @IsIn(['login', 'totalStars', 'stars', 'date', 'forks', 'totalForks'])
  key: 'login' | 'date' | 'stars' | 'totalStars';

  @IsOptional()
  @IsIn(['desc', 'asc'])
  state: 'desc' | 'asc';
}