mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add optional() method to Validator interface
This commit is contained in:
parent
484544d14d
commit
e8ac76dbcf
4
express-validator/express-validator.d.ts
vendored
4
express-validator/express-validator.d.ts
vendored
@ -150,6 +150,10 @@ declare module ExpressValidator {
|
||||
* Will work against Visa, MasterCard, American Express, Discover, Diners Club, and JCB card numbering formats
|
||||
*/
|
||||
isCreditCard(): Validator;
|
||||
/**
|
||||
* Check an input only when the input exists
|
||||
*/
|
||||
optional(): Validator;
|
||||
}
|
||||
|
||||
interface Sanitizer {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user