validation-chain-builders.d.ts 634 B

123456789101112131415
  1. import { CustomMessageBuilder, ValidationChain } from './check';
  2. import { Location } from "./location";
  3. interface ValidationChainBuilder {
  4. (fields?: string | string[], message?: CustomMessageBuilder): ValidationChain;
  5. (fields?: string | string[], message?: any): ValidationChain;
  6. }
  7. export function buildCheckFunction(location: Location[]): ValidationChainBuilder;
  8. export const check: ValidationChainBuilder;
  9. export const body: ValidationChainBuilder;
  10. export const cookie: ValidationChainBuilder;
  11. export const header: ValidationChainBuilder;
  12. export const param: ValidationChainBuilder;
  13. export const query: ValidationChainBuilder;