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.
14 lines (13 loc) • 475 B
TypeScript
import { PropertyParsingError } from '../../error';
import { ParseChain, ParseChainData } from './parse-chain';
/**
* This is facade for the chain of responsibility pattern.
* Defines the order of the chain and starts the chain.
*/
declare class ParseChainFacade implements ParseChain {
private readonly _chain;
constructor();
parse(data: ParseChainData): PropertyParsingError | undefined;
}
export declare const parseChainFacade: ParseChainFacade;
export {};