mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
12 lines
No EOL
474 B
TypeScript
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;
|
|
} |