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.
11 lines (10 loc) • 466 B
TypeScript
import type { DtoDefinition } from './dto-definition.type';
/**
* Shared registry for the schema parse function.
* Lives in its own module so both property-parsers.ts and schema-parse-object.ts
* can import it without creating circular module dependencies.
*/
type DtoParseFn = (dto: DtoDefinition, raw: unknown) => unknown;
export declare function getDtoParseFn(): DtoParseFn | undefined;
export declare function setDtoParseFn(fn: DtoParseFn): void;
export {};