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) • 394 B
TypeScript
import { PropertyData, PropertyParser } from '../types';
interface PropertyDecoratorCustomData<T> extends PropertyData<T> {
/**
* Property parser to use. Used to parse the value to the correct type.
*/
readonly parser: PropertyParser<T>;
}
export declare function CustomProperty<T>(data: PropertyDecoratorCustomData<T>): (target: any, propertyKey: string) => void;
export {};