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) • 440 B
TypeScript
import { NumberRange, PropertyData, PropertyParserStrictDataTypes } from '../types';
type PropertyDecoratorNumberData = PropertyData<number> & PropertyParserStrictDataTypes & NumberRange;
export declare function NumberProperty(data?: PropertyDecoratorNumberData): (target: any, propertyKey: string) => void;
export declare function IntegerProperty(data?: PropertyDecoratorNumberData): (target: any, propertyKey: string) => void;
export {};