one-of.d.ts 474 B

123456789101112
  1. import * as express from 'express';
  2. import { ValidationChain } from './check';
  3. import { Location } from './location';
  4. type ValidationChains = (ValidationChain | ValidationChain[])[];
  5. export function oneOf(chains: ValidationChains, message?: OneOfCustomMessageBuilder): express.RequestHandler;
  6. export function oneOf(chains: ValidationChains, message?: any): express.RequestHandler;
  7. export interface OneOfCustomMessageBuilder {
  8. (options: { req: express.Request }): any;
  9. }