UNPKG

pl4y-data-library

Version:

This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.

15 lines (12 loc) 294 B
import { IsOptional, IsDate } from "class-validator"; import { Type } from "class-transformer"; export class UpdatePricingDatesDto { @IsOptional() @Type(() => Date) @IsDate() effectiveDate?: Date; @IsOptional() @Type(() => Date) @IsDate() expiryDate?: Date; }