UNPKG

bookish-potato-dto

Version:

## Overview A TypeScript decorators-based API for defining Data Transfer Object (DTO) classes, types, and parsers. Simplifies schema validation and type enforcement using intuitive decorators and TypeScript classes.

10 lines (9 loc) 318 B
import { ClassType } from '../_types'; /** * @deprecated - If you want to extend a class, use the ´extends´ keyword. * @param data - The data to extend the class. * @constructor */ export declare function DtoClass<T extends ClassType<unknown>>(data: { extends: T[]; }): (target: ClassType<unknown>) => void;