/
home
/
infinitibizsol
/
.trash
/
node_modules.5
/
express-validator
/
src
/
chain
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/node_modules.5/express-validator/src/chain/context-runner.d.ts
import { Request, ValidationError } from '../base'; import { ReadonlyContext } from '../context'; import { Result } from '../validation-result'; export declare type ContextRunningOptions = { /** * Defines whether errors and sanitization should be persisted to `req`. * @default false */ dryRun?: boolean; }; export interface ResultWithContext extends Result<ValidationError> { readonly context: ReadonlyContext; } export interface ContextRunner { /** * Runs the current validation chain. * @param req the express request to validate * @param options an object of options to customize how the chain will be run * @returns a promise for a {@link Result} that resolves when the validation chain has finished */ run(req: Request, options?: ContextRunningOptions): Promise<ResultWithContext>; }
Copyright ©2k19 -
Hexid
|
Tex7ure