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.
12 lines (11 loc) • 483 B
TypeScript
import { PropertyParser } from '../types';
import { PropertyParserAbstract } from './property-parser.abstract';
/**
* Decorator class for the number property parser.
* Parses string to number before processing the value by the decorated class.
*/
export declare class PropertyParserStringToNumberDecorator extends PropertyParserAbstract<number> {
private readonly _propertyParser;
constructor(_propertyParser: PropertyParser<number>);
parse(value: unknown): number;
}