1 | import { CustomValidator } from '../base';
|
2 | import { Optional } from '../context';
|
3 | import { ValidationChain } from './validation-chain';
|
4 | export interface ContextHandler<Chain> {
|
5 | bail(): Chain;
|
6 | if(condition: CustomValidator | ValidationChain): Chain;
|
7 | optional(options?: Partial<Optional> | true): Chain;
|
8 | }
|