mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
add optional() method to Validator interface
This commit is contained in:
+4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user