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.
6 lines (5 loc) • 374 B
TypeScript
import { PropertyData } from '../types';
import { EnumAllowedGenericType, EnumType } from '../_types';
type PropertyDecoratorEnumData<T extends EnumAllowedGenericType> = PropertyData<T>;
export declare function EnumProperty<T extends EnumAllowedGenericType>(enumType: EnumType<T>, data?: PropertyDecoratorEnumData<T>): (target: any, propertyKey: string) => void;
export {};