1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | declare namespace ValidatorJS {
|
14 | type AlphaLocale = "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-QA" | "ar-QM" | "ar-SA" | "ar-SD" | "ar-SY" | "ar-TN" | "ar-YE" | "bg-BG" | "cs-CZ" | "da-DK" | "de-DE" | "el-GR" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "en-ZM" | "es-ES" | "fr-FR" | "hu-HU" | "it-IT" | "nb-NO" | "nl-NL" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "ru-RU" | "sk-SK" | "sr-RS" | "sr-RS@latin" | "sv-SE" | "tr-TR" | "uk-UA";
|
15 | type AlphanumericLocale = "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-QA" | "ar-QM" | "ar-SA" | "ar-SD" | "ar-SY" | "ar-TN" | "ar-YE" | "bg-BG"| "cs-CZ" | "da-DK" | "de-DE" | "el-GR" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "en-ZM" | "es-ES" | "fr-FR" | "hu-HU" | "it-IT" | "nb-NO" | "nl-NL" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "ru-RU" | "sk-SK" | "sr-RS" | "sr-RS@latin" | "sv-SE" | "tr-TR" | "uk-UA";
|
16 | type DecimalLocale = "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-QA" | "ar-QM" | "ar-SA" | "ar-SD" | "ar-SY" | "ar-TN" | "ar-YE" | "bg-BG" | "cs-CZ" | "da-DK" | "de-DE" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "en-ZM" | "es-ES" | "fr-FR" | "hu-HU" | "it-IT" | "nb-NO" | "nl-NL" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "ru-RU" | "sr-RS" | "sr-RS@latin" | "sv-SE" | "tr-TR" | "uk-UA";
|
17 | type FloatLocale = "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-QA" | "ar-QM" | "ar-SA" | "ar-SD" | "ar-SY" | "ar-TN" | "ar-YE" | "bg-BG" | "cs-CZ" | "da-DK" | "de-DE" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "en-ZM" | "es-ES" | "fr-FR" | "hu-HU" | "it-IT" | "nb-NO" | "nl-NL" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "ru-RU" | "sr-RS" | "sr-RS@latin" | "sv-SE" | "tr-TR" | "uk-UA";
|
18 | type MobilePhoneLocale = "ar-AE" | "ar-DZ" | "ar-EG" | "ar-JO" | "ar-SA" | "ar-SY" | "be-BY" | "bg-BG" | "cs-CZ" | "de-DE" | "da-DK" | "el-GR" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-KE" | "en-NG" | "en-NZ" | "en-UG" | "en-RW" | "en-SG" | "en-TZ" | "en-PK" | "en-US" | "en-CA" | "en-ZA" | "en-ZM" | "es-ES" | "fa-IR" | "fi-FI" | "fo-FO" | "fr-FR" | "he-IL" | "hu-HU" | "id-ID" | "it-IT" | "ja-JP" | "kk-KZ" | "kl-GL" | "ko-KR" | "lt-LT" | "ms-MY" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-PT" | "ro-RO" | "ru-RU" | "sk-SK" | "sr-RS" | "th-TH" | "tr-TR" | "uk-UA" | "vi-VN" | "zh-CN" | "zh-HK" | "zh-TW" | "any";
|
19 | type PostalCodeLocale = "AT" | "AU" | "BE" | "BG" | "CA" | "CH" | "CZ" | "DE" | "DK" | "DZ" | "ES" | "FI" | "FR" | "GB" | "GR" | "IL" | "IN" | "IS" | "IT" | "JP" | "KE" | "LI" | "MX" | "NL" | "NO" | "PL" | "PT" | "RO" | "RU" | "SA" | "SE" | "TW" | "US" | "ZA" | "ZM" | "any"
|
20 | type HashAlgorithm = "md4" | "md5" | "sha1" | "sha256" | "sha384" | "sha512" | "ripemd128" | "ripemd160" | "tiger128" | "tiger160" | "tiger192" | "crc32" | "crc32b";
|
21 |
|
22 | interface ValidatorStatic {
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | contains(str: string, elem: any): boolean;
|
30 |
|
31 |
|
32 | equals(str: string, comparison: string): boolean;
|
33 |
|
34 |
|
35 | isAfter(str: string, date?: string): boolean;
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | isAlpha(str: string, locale?: AlphaLocale): boolean;
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | isAlphanumeric(str: string, locale?: AlphanumericLocale): boolean;
|
50 |
|
51 |
|
52 | isAscii(str: string): boolean;
|
53 |
|
54 |
|
55 | isBase64(str: string): boolean;
|
56 |
|
57 |
|
58 | isBefore(str: string, date?: string): boolean;
|
59 |
|
60 |
|
61 | isBoolean(str: string): boolean;
|
62 |
|
63 |
|
64 | isByteLength(str: string, options: IsByteLengthOptions): boolean;
|
65 | isByteLength(str: string, min: number, max?: number): boolean;
|
66 |
|
67 |
|
68 | isCreditCard(str: string): boolean;
|
69 |
|
70 |
|
71 | isCurrency(str: string, options?: IsCurrencyOptions): boolean;
|
72 |
|
73 |
|
74 | isDataURI(str: string): boolean;
|
75 |
|
76 |
|
77 | isDecimal(str: string, options?: IsDecimalOptions): boolean;
|
78 |
|
79 |
|
80 | isDivisibleBy(str: string, number: number): boolean;
|
81 |
|
82 |
|
83 | isEmail(str: string, options?: IsEmailOptions): boolean;
|
84 |
|
85 |
|
86 | isEmpty(str: string): boolean;
|
87 |
|
88 |
|
89 | isFQDN(str: string, options?: IsFQDNOptions): boolean;
|
90 |
|
91 |
|
92 | isFloat(str: string, options?: IsFloatOptions): boolean;
|
93 |
|
94 |
|
95 | isFullWidth(str: string): boolean;
|
96 |
|
97 |
|
98 | isHalfWidth(str: string): boolean;
|
99 |
|
100 |
|
101 |
|
102 |
|
103 | isHash(str: string, algorithm: HashAlgorithm): boolean;
|
104 |
|
105 |
|
106 | isHexColor(str: string): boolean;
|
107 |
|
108 |
|
109 | isHexadecimal(str: string): boolean;
|
110 |
|
111 |
|
112 | isIP(str: string, version?: number): boolean;
|
113 |
|
114 |
|
115 | isISBN(str: string, version?: number): boolean;
|
116 |
|
117 |
|
118 | isISSN(str: string, options?: IsISSNOptions): boolean;
|
119 |
|
120 |
|
121 |
|
122 | isISIN(str: string): boolean;
|
123 |
|
124 |
|
125 | isISO8601(str: string): boolean;
|
126 |
|
127 |
|
128 |
|
129 | isISO31661Alpha2(str: string): boolean;
|
130 |
|
131 |
|
132 | isISRC(str: string): boolean;
|
133 |
|
134 |
|
135 | isIn(str: string, values: any[]): boolean;
|
136 |
|
137 |
|
138 | isInt(str: string, options?: IsIntOptions): boolean;
|
139 |
|
140 |
|
141 | isJSON(str: string): boolean;
|
142 |
|
143 |
|
144 | isLatLong(str: string): boolean;
|
145 |
|
146 |
|
147 |
|
148 | isLength(str: string, options: IsLengthOptions): boolean;
|
149 | isLength(str: string, min: number, max?: number): boolean;
|
150 |
|
151 |
|
152 | isLowercase(str: string): boolean;
|
153 |
|
154 |
|
155 | isMACAddress(str: string): boolean;
|
156 |
|
157 |
|
158 | isMD5(str: string): boolean;
|
159 |
|
160 |
|
161 | isMimeType(str: string): boolean;
|
162 |
|
163 |
|
164 |
|
165 |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 | isMobilePhone(str: string, locale: MobilePhoneLocale, options?: IsMobilePhoneOptions): boolean;
|
171 |
|
172 |
|
173 |
|
174 | isMongoId(str: string): boolean;
|
175 |
|
176 |
|
177 | isMultibyte(str: string): boolean;
|
178 |
|
179 |
|
180 | isNumeric(str: string, options?: IsNumericOptions): boolean;
|
181 |
|
182 |
|
183 | isPort(str: string): boolean;
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 | isPostalCode(str: string, locale: PostalCodeLocale): boolean;
|
191 |
|
192 |
|
193 | isSurrogatePair(str: string): boolean;
|
194 |
|
195 |
|
196 | isURL(str: string, options?: IsURLOptions): boolean;
|
197 |
|
198 |
|
199 | isUUID(str: string, version?: 3|4|5|"3"|"4"|"5"|"all"): boolean;
|
200 |
|
201 |
|
202 | isUppercase(str: string): boolean;
|
203 |
|
204 |
|
205 | isVariableWidth(str: string): boolean;
|
206 |
|
207 |
|
208 | isWhitelisted(str: string, chars: string | string[]): boolean;
|
209 |
|
210 |
|
211 | matches(str: string, pattern: RegExp | string, modifiers?: string): boolean;
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
|
219 | blacklist(input: string, chars: string): string;
|
220 |
|
221 |
|
222 | escape(input: string): string;
|
223 |
|
224 |
|
225 | unescape(input: string): string;
|
226 |
|
227 |
|
228 | ltrim(input: string, chars?: string): string;
|
229 |
|
230 |
|
231 | normalizeEmail(email: string, options?: NormalizeEmailOptions): string | false;
|
232 |
|
233 |
|
234 | rtrim(input: string, chars?: string): string;
|
235 |
|
236 |
|
237 |
|
238 | stripLow(input: string, keep_new_lines?: boolean): string;
|
239 |
|
240 |
|
241 |
|
242 | toBoolean(input: string, strict?: boolean): boolean;
|
243 |
|
244 |
|
245 | toDate(input: string): Date;
|
246 |
|
247 |
|
248 | toFloat(input: string): number;
|
249 |
|
250 |
|
251 | toInt(input: string, radix?: number): number;
|
252 |
|
253 |
|
254 | trim(input: string, chars?: string): string;
|
255 |
|
256 |
|
257 |
|
258 | whitelist(input: string, chars: string): string;
|
259 |
|
260 | toString(input: any | any[]): string;
|
261 |
|
262 | version: string;
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 | extend<T extends Function>(name: string, fn: T): void;
|
271 | }
|
272 |
|
273 |
|
274 | interface IsByteLengthOptions {
|
275 | min?: number;
|
276 | max?: number;
|
277 | }
|
278 |
|
279 |
|
280 | interface IsCurrencyOptions {
|
281 | symbol?: string;
|
282 | require_symbol?: boolean;
|
283 | allow_space_after_symbol?: boolean;
|
284 | symbol_after_digits?: boolean;
|
285 | allow_negatives?: boolean;
|
286 | parens_for_negatives?: boolean;
|
287 | negative_sign_before_digits?: boolean;
|
288 | negative_sign_after_digits?: boolean;
|
289 | allow_negative_sign_placeholder?: boolean;
|
290 | thousands_separator?: string;
|
291 | decimal_separator?: string;
|
292 | allow_decimal?: boolean;
|
293 | require_decimal?: boolean;
|
294 | digits_after_decimal?: number[];
|
295 | allow_space_after_digits?: boolean;
|
296 | }
|
297 |
|
298 |
|
299 | interface IsDecimalOptions {
|
300 | force_decimal?: boolean;
|
301 | decimal_digits?: string;
|
302 | locale?: DecimalLocale;
|
303 | }
|
304 |
|
305 |
|
306 | interface IsEmailOptions {
|
307 | allow_display_name?: boolean;
|
308 | require_display_name?: boolean;
|
309 | allow_utf8_local_part?: boolean;
|
310 | require_tld?: boolean;
|
311 | }
|
312 |
|
313 |
|
314 | interface IsFQDNOptions {
|
315 | require_tld?: boolean;
|
316 | allow_underscores?: boolean;
|
317 | allow_trailing_dot?: boolean;
|
318 | }
|
319 |
|
320 |
|
321 | interface IsFloatOptions {
|
322 | min?: number;
|
323 | max?: number;
|
324 | gt?: number;
|
325 | lt?: number;
|
326 | locale?: FloatLocale;
|
327 | }
|
328 |
|
329 |
|
330 | interface IsISSNOptions {
|
331 | case_sensitive?: boolean;
|
332 | require_hyphen?: boolean;
|
333 | }
|
334 |
|
335 |
|
336 | interface IsIntOptions {
|
337 | min?: number;
|
338 | max?: number;
|
339 | allow_leading_zeroes?: boolean;
|
340 | lt?: number;
|
341 | gt?: number;
|
342 | }
|
343 |
|
344 |
|
345 | interface IsLengthOptions {
|
346 | min?: number;
|
347 | max?: number;
|
348 | }
|
349 |
|
350 |
|
351 | interface IsMobilePhoneOptions {
|
352 | strictMode?: boolean;
|
353 | }
|
354 |
|
355 |
|
356 | interface IsURLOptions {
|
357 | protocols?: string[];
|
358 | require_tld?: boolean;
|
359 | require_protocol?: boolean;
|
360 | require_host?: boolean;
|
361 | require_valid_protocol?: boolean;
|
362 | allow_underscores?: boolean;
|
363 | host_whitelist?: (string | RegExp)[];
|
364 | host_blacklist?: (string | RegExp)[];
|
365 | allow_trailing_dot?: boolean;
|
366 | allow_protocol_relative_urls?: boolean;
|
367 | }
|
368 |
|
369 |
|
370 | interface NormalizeEmailOptions {
|
371 | all_lowercase?: boolean;
|
372 | gmail_lowercase?: boolean;
|
373 | gmail_remove_dots?: boolean;
|
374 | gmail_remove_subaddress?: boolean;
|
375 | gmail_convert_googlemaildotcom?: boolean;
|
376 | outlookdotcom_lowercase?: boolean;
|
377 | outlookdotcom_remove_subaddress?: boolean;
|
378 | yahoo_lowercase?: boolean;
|
379 | yahoo_remove_subaddress?: boolean;
|
380 | icloud_lowercase?: boolean;
|
381 | icloud_remove_subaddress?: boolean;
|
382 | }
|
383 |
|
384 | |
385 |
|
386 |
|
387 | interface IsNumericOptions {
|
388 | no_symbols?: boolean;
|
389 | }
|
390 | }
|
391 |
|
392 |
|
393 |
|
394 |
|
395 | declare var validator: ValidatorJS.ValidatorStatic;
|
396 |
|
397 | declare module "validator" {
|
398 | export = validator;
|
399 | }
|
400 |
|
401 | declare module "validator/lib/blacklist" {
|
402 | const blacklist: typeof validator.blacklist;
|
403 | export = blacklist;
|
404 | }
|
405 |
|
406 | declare module "validator/lib/contains" {
|
407 | const contains: typeof validator.contains;
|
408 | export = contains;
|
409 | }
|
410 |
|
411 | declare module "validator/lib/equals" {
|
412 | const equals: typeof validator.equals;
|
413 | export = equals;
|
414 | }
|
415 |
|
416 | declare module "validator/lib/escape" {
|
417 | const escape: typeof validator.escape;
|
418 | export = escape;
|
419 | }
|
420 |
|
421 | declare module "validator/lib/isAfter" {
|
422 | const isAfter: typeof validator.isAfter;
|
423 | export = isAfter;
|
424 | }
|
425 |
|
426 | declare module "validator/lib/isAlpha" {
|
427 | const isAlpha: typeof validator.isAlpha;
|
428 | export = isAlpha;
|
429 | }
|
430 |
|
431 | declare module "validator/lib/isAlphanumeric" {
|
432 | const isAlphanumeric: typeof validator.isAlphanumeric;
|
433 | export = isAlphanumeric;
|
434 | }
|
435 |
|
436 | declare module "validator/lib/isAscii" {
|
437 | const isAscii: typeof validator.isAscii;
|
438 | export = isAscii;
|
439 | }
|
440 |
|
441 | declare module "validator/lib/isBase64" {
|
442 | const isBase64: typeof validator.isBase64;
|
443 | export = isBase64;
|
444 | }
|
445 |
|
446 | declare module "validator/lib/isBefore" {
|
447 | const isBefore: typeof validator.isBefore;
|
448 | export = isBefore;
|
449 | }
|
450 |
|
451 | declare module "validator/lib/isBoolean" {
|
452 | const isBoolean: typeof validator.isBoolean;
|
453 | export = isBoolean;
|
454 | }
|
455 |
|
456 | declare module "validator/lib/isByteLength" {
|
457 | const isByteLength: typeof validator.isByteLength;
|
458 | export = isByteLength;
|
459 | }
|
460 |
|
461 | declare module "validator/lib/isCreditCard" {
|
462 | const isCreditCard: typeof validator.isCreditCard;
|
463 | export = isCreditCard;
|
464 | }
|
465 |
|
466 | declare module "validator/lib/isCurrency" {
|
467 | const isCurrency: typeof validator.isCurrency;
|
468 | export = isCurrency;
|
469 | }
|
470 |
|
471 | declare module "validator/lib/isDataURI" {
|
472 | const isDataURI: typeof validator.isDataURI;
|
473 | export = isDataURI;
|
474 | }
|
475 |
|
476 | declare module "validator/lib/isDecimal" {
|
477 | const isDecimal: typeof validator.isDecimal;
|
478 | export = isDecimal;
|
479 | }
|
480 |
|
481 | declare module "validator/lib/isDivisibleBy" {
|
482 | const isDivisibleBy: typeof validator.isDivisibleBy;
|
483 | export = isDivisibleBy;
|
484 | }
|
485 |
|
486 | declare module "validator/lib/isEmail" {
|
487 | const isEmail: typeof validator.isEmail;
|
488 | export = isEmail;
|
489 | }
|
490 |
|
491 | declare module "validator/lib/isEmpty" {
|
492 | const isEmpty: typeof validator.isEmpty;
|
493 | export = isEmpty;
|
494 | }
|
495 |
|
496 | declare module "validator/lib/isFQDN" {
|
497 | const isFQDN: typeof validator.isFQDN;
|
498 | export = isFQDN;
|
499 | }
|
500 |
|
501 | declare module "validator/lib/isFloat" {
|
502 | const isFloat: typeof validator.isFloat;
|
503 | export = isFloat;
|
504 | }
|
505 |
|
506 | declare module "validator/lib/isFullWidth" {
|
507 | const isFullWidth: typeof validator.isFullWidth;
|
508 | export = isFullWidth;
|
509 | }
|
510 |
|
511 | declare module "validator/lib/isHalfWidth" {
|
512 | const isHalfWidth: typeof validator.isHalfWidth;
|
513 | export = isHalfWidth;
|
514 | }
|
515 |
|
516 | declare module "validator/lib/isHash" {
|
517 | const isHash: typeof validator.isHash;
|
518 | export = isHash;
|
519 | }
|
520 |
|
521 | declare module "validator/lib/isHexColor" {
|
522 | const isHexColor: typeof validator.isHexColor;
|
523 | export = isHexColor;
|
524 | }
|
525 |
|
526 | declare module "validator/lib/isHexadecimal" {
|
527 | const isHexadecimal: typeof validator.isHexadecimal;
|
528 | export = isHexadecimal;
|
529 | }
|
530 |
|
531 | declare module "validator/lib/isIP" {
|
532 | const isIP: typeof validator.isIP;
|
533 | export = isIP;
|
534 | }
|
535 |
|
536 | declare module "validator/lib/isISBN" {
|
537 | const isISBN: typeof validator.isISBN;
|
538 | export = isISBN;
|
539 | }
|
540 |
|
541 | declare module "validator/lib/isISSN" {
|
542 | const isISSN: typeof validator.isISSN;
|
543 | export = isISSN;
|
544 | }
|
545 |
|
546 | declare module "validator/lib/isISIN" {
|
547 | const isISIN: typeof validator.isISIN;
|
548 | export = isISIN;
|
549 | }
|
550 |
|
551 | declare module "validator/lib/isISO8601" {
|
552 | const isISO8601: typeof validator.isISO8601;
|
553 | export = isISO8601;
|
554 | }
|
555 |
|
556 | declare module "validator/lib/isISO31661Alpha2" {
|
557 | const isISO31661Alpha2: typeof validator.isISO31661Alpha2;
|
558 | export = isISO31661Alpha2;
|
559 | }
|
560 |
|
561 | declare module "validator/lib/isISRC" {
|
562 | const isISRC: typeof validator.isISRC;
|
563 | export = isISRC;
|
564 | }
|
565 |
|
566 | declare module "validator/lib/isIn" {
|
567 | const isIn: typeof validator.isIn;
|
568 | export = isIn;
|
569 | }
|
570 |
|
571 | declare module "validator/lib/isInt" {
|
572 | const isInt: typeof validator.isInt;
|
573 | export = isInt;
|
574 | }
|
575 |
|
576 | declare module "validator/lib/isJSON" {
|
577 | const isJSON: typeof validator.isJSON;
|
578 | export = isJSON;
|
579 | }
|
580 |
|
581 | declare module "validator/lib/isLatLong" {
|
582 | const isLatLong: typeof validator.isLatLong;
|
583 | export = isLatLong;
|
584 | }
|
585 |
|
586 | declare module "validator/lib/isLength" {
|
587 | const isLength: typeof validator.isLength;
|
588 | export = isLength;
|
589 | }
|
590 |
|
591 | declare module "validator/lib/isLowercase" {
|
592 | const isLowercase: typeof validator.isLowercase;
|
593 | export = isLowercase;
|
594 | }
|
595 |
|
596 | declare module "validator/lib/isMACAddress" {
|
597 | const isMACAddress: typeof validator.isMACAddress;
|
598 | export = isMACAddress;
|
599 | }
|
600 |
|
601 | declare module "validator/lib/isMD5" {
|
602 | const isMD5: typeof validator.isMD5;
|
603 | export = isMD5;
|
604 | }
|
605 |
|
606 | declare module "validator/lib/isMimeType" {
|
607 | const isMimeType: typeof validator.isMimeType;
|
608 | export = isMimeType;
|
609 | }
|
610 |
|
611 | declare module "validator/lib/isMobilePhone" {
|
612 | const isMobilePhone: typeof validator.isMobilePhone;
|
613 | export = isMobilePhone;
|
614 | }
|
615 |
|
616 | declare module "validator/lib/isPostalCode" {
|
617 | const isPostalCode: typeof validator.isPostalCode;
|
618 | export = isPostalCode;
|
619 | }
|
620 |
|
621 | declare module "validator/lib/isMongoId" {
|
622 | const isMongoId: typeof validator.isMongoId;
|
623 | export = isMongoId;
|
624 | }
|
625 |
|
626 | declare module "validator/lib/isMultibyte" {
|
627 | const isMultibyte: typeof validator.isMultibyte;
|
628 | export = isMultibyte;
|
629 | }
|
630 |
|
631 | declare module "validator/lib/isNumeric" {
|
632 | const isNumeric: typeof validator.isNumeric;
|
633 | export = isNumeric;
|
634 | }
|
635 |
|
636 | declare module "validator/lib/isPort" {
|
637 | const isPort: typeof validator.isPort;
|
638 | export = isPort;
|
639 | }
|
640 |
|
641 | declare module "validator/lib/isSurrogatePair" {
|
642 | const isSurrogatePair: typeof validator.isSurrogatePair;
|
643 | export = isSurrogatePair;
|
644 | }
|
645 |
|
646 | declare module "validator/lib/isURL" {
|
647 | const isURL: typeof validator.isURL;
|
648 | export = isURL;
|
649 | }
|
650 |
|
651 | declare module "validator/lib/isUUID" {
|
652 | const isUUID: typeof validator.isUUID;
|
653 | export = isUUID;
|
654 | }
|
655 |
|
656 | declare module "validator/lib/isUppercase" {
|
657 | const isUppercase: typeof validator.isUppercase;
|
658 | export = isUppercase;
|
659 | }
|
660 |
|
661 | declare module "validator/lib/isVariableWidth" {
|
662 | const isVariableWidth: typeof validator.isVariableWidth;
|
663 | export = isVariableWidth;
|
664 | }
|
665 |
|
666 | declare module "validator/lib/isWhitelisted" {
|
667 | const isWhitelisted: typeof validator.isWhitelisted;
|
668 | export = isWhitelisted;
|
669 | }
|
670 |
|
671 | declare module "validator/lib/ltrim" {
|
672 | const ltrim: typeof validator.ltrim;
|
673 | export = ltrim;
|
674 | }
|
675 |
|
676 | declare module "validator/lib/matches" {
|
677 | const matches: typeof validator.matches;
|
678 | export = matches;
|
679 | }
|
680 |
|
681 | declare module "validator/lib/normalizeEmail" {
|
682 | const normalizeEmail: typeof validator.normalizeEmail;
|
683 | export = normalizeEmail;
|
684 | }
|
685 |
|
686 | declare module "validator/lib/rtrim" {
|
687 | const rtrim: typeof validator.rtrim;
|
688 | export = rtrim;
|
689 | }
|
690 |
|
691 | declare module "validator/lib/stripLow" {
|
692 | const stripLow: typeof validator.stripLow;
|
693 | export = stripLow;
|
694 | }
|
695 |
|
696 | declare module "validator/lib/toBoolean" {
|
697 | const toBoolean: typeof validator.toBoolean;
|
698 | export = toBoolean;
|
699 | }
|
700 |
|
701 | declare module "validator/lib/toDate" {
|
702 | const toDate: typeof validator.toDate;
|
703 | export = toDate;
|
704 | }
|
705 |
|
706 | declare module "validator/lib/toFloat" {
|
707 | const toFloat: typeof validator.toFloat;
|
708 | export = toFloat;
|
709 | }
|
710 |
|
711 | declare module "validator/lib/toInt" {
|
712 | const toInt: typeof validator.toInt;
|
713 | export = toInt;
|
714 | }
|
715 |
|
716 | declare module "validator/lib/trim" {
|
717 | const trim: typeof validator.trim;
|
718 | export = trim;
|
719 | }
|
720 |
|
721 | declare module "validator/lib/unescape" {
|
722 | const unescape: typeof validator.unescape;
|
723 | export = unescape;
|
724 | }
|
725 |
|
726 | declare module "validator/lib/whitelist" {
|
727 | const whitelist: typeof validator.whitelist;
|
728 | export = whitelist;
|
729 | }
|
730 |
|
731 |
|
732 | interface IValidatorStatic extends ValidatorJS.ValidatorStatic { }
|
733 | interface IURLoptions extends ValidatorJS.IsURLOptions { }
|
734 | interface IFQDNoptions extends ValidatorJS.IsFQDNOptions { }
|
735 | interface IEmailoptions extends ValidatorJS.NormalizeEmailOptions { }
|