ccashfrontend/views/node_modules/express-validator/check/one-of.d.ts
2021-06-18 09:20:09 +10:00

12 lines
No EOL
474 B
TypeScript

import * as express from 'express';
import { ValidationChain } from './check';
import { Location } from './location';
type ValidationChains = (ValidationChain | ValidationChain[])[];
export function oneOf(chains: ValidationChains, message?: OneOfCustomMessageBuilder): express.RequestHandler;
export function oneOf(chains: ValidationChains, message?: any): express.RequestHandler;
export interface OneOfCustomMessageBuilder {
(options: { req: express.Request }): any;
}