bookish-potato-dto
Version:
A TypeScript DTO (Data Transfer Object) parsing and validation library. Define a schema once — get runtime validation and a fully inferred TypeScript type for free.
9 lines (8 loc) • 397 B
TypeScript
import { DtoDefinition } from './dto-definition.type';
import { InferDto } from './infer-dto.type';
/**
* parseObject implementation for DtoDefinition.
* Reuses the existing chain-of-responsibility parse engine.
* Called by the public parseObject() overload in src/parser/parser.ts.
*/
export declare function schemaParseObject<D extends DtoDefinition>(dto: D, toParse: unknown): InferDto<D>;