Files
SeConectai_Vendas/src/modules/planos/dto/list-planos.query.dto.ts
T
2026-08-14 17:35:24 -03:00

10 lines
291 B
TypeScript

import { Transform } from 'class-transformer';
import { IsBoolean, IsOptional } from 'class-validator';
export class ListPlanosQueryDto {
@IsOptional()
@Transform(({ value }) => (value === undefined ? undefined : value === 'true' || value === true))
@IsBoolean()
ativo?: boolean;
}