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.

10 lines (9 loc) 455 B
import { ClassType } from '../_types'; /** * @deprecated Use the `extends` keyword or spread composition with `defineDto()` instead. * This decorator and the entire 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 DtoClass<T extends ClassType<unknown>>(data: { extends: T[]; }): (target: ClassType<unknown>) => void;