UNPKG

bookish-potato-dto

Version:

A TypeScript DTO (Data Transfer Object) parsing and validation library. Define a schema once — get runtime validation and a fully inferred TypeScript type for free.

11 lines (10 loc) 597 B
import { PropertyParserStrictDataTypes } from '../types/property-parser-strict-data-types.type'; import { PropertyData } from '../types'; type PropertyDecoratorBooleanData = PropertyData<boolean> & PropertyParserStrictDataTypes; /** * @deprecated Use `field.boolean()` inside `defineDto()` instead. * The decorator API will be removed in the next major version (v2). * @see https://github.com/andrei-trukhin/bookish-potato-dto-issues/blob/main/MIGRATION.md */ export declare function BooleanProperty(data?: PropertyDecoratorBooleanData): (target: any, propertyKey: string) => void; export {};