context-handler-impl.d.ts 619 B

12345678910111213
  1. import { ContextBuilder } from '../context-builder';
  2. import { CustomValidator } from '../base';
  3. import { BailOptions, ContextHandler, OptionalOptions } from './context-handler';
  4. import { ContextRunner } from './context-runner';
  5. export declare class ContextHandlerImpl<Chain> implements ContextHandler<Chain> {
  6. private readonly builder;
  7. private readonly chain;
  8. constructor(builder: ContextBuilder, chain: Chain);
  9. bail(opts?: BailOptions): Chain;
  10. if(condition: CustomValidator | ContextRunner): Chain;
  11. optional(options?: OptionalOptions | boolean): Chain;
  12. hide(hiddenValue?: string): Chain;
  13. }