mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-14 12:30:47 +08:00
Merge pull request #4522 from sobit/patch-2
add optional() method to Validator interface
This commit is contained in:
commit
e5d5b89d33
1 file changed
+4
+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