mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Remove commented out code
Remove the code commented out. - Update the "usage" method documentation to apply to the `matches` method rather than the `regex` method.
This commit is contained in:
13
express-validator/express-validator.d.ts
vendored
13
express-validator/express-validator.d.ts
vendored
@@ -122,7 +122,6 @@ declare namespace ExpressValidator {
|
||||
/**
|
||||
* Check if length is 0
|
||||
*/
|
||||
//notNull(): Validator; // I don't see this in the documentation or code anywhere.
|
||||
isNull(): Validator;
|
||||
/**
|
||||
* Not just whitespace (input.trim().length !== 0)
|
||||
@@ -130,14 +129,13 @@ declare namespace ExpressValidator {
|
||||
notEmpty(): Validator;
|
||||
equals(equals:any): Validator;
|
||||
contains(str:string): Validator;
|
||||
//notContains(str:string): Validator; // I don't see this in the documentation or code anywhere.
|
||||
|
||||
/**
|
||||
* Usage: matches(/[a-z]/i) or matches('[a-z]','i')
|
||||
*/
|
||||
matches(pattern:string, modifiers?:string): Validator;
|
||||
matches(pattern: RegExp): Validator;
|
||||
/**
|
||||
* Usage: regex(/[a-z]/i) or regex('[a-z]','i')
|
||||
*/
|
||||
//regex(pattern:string, modifiers:string): Validator; // I don't see this in the documentation or code anywhere.
|
||||
//notRegex(pattern:string, modifiers:string): Validator; // I don't see this in the documentation or code anywhere.
|
||||
|
||||
/**
|
||||
* max is optional
|
||||
*/
|
||||
@@ -200,7 +198,6 @@ declare namespace ExpressValidator {
|
||||
ltrim(...chars:string[]): Sanitizer;
|
||||
rtrim(...chars:string[]): Sanitizer;
|
||||
stripLow(keep_new_lines?: boolean): Sanitizer;
|
||||
//ifNull(replace:any): Sanitizer; // I don't see this in the documentation or code anywhere.
|
||||
toFloat(): Sanitizer;
|
||||
toInt(radix?: number): Sanitizer;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user