Merge pull request #4522 from sobit/patch-2

add optional() method to Validator interface
This commit is contained in:
Masahiro Wakame
2015-06-07 22:34:07 +09:00
+4
View File
@@ -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 {