mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
validator (v7.0): remove isDate()
This commit is contained in:
Vendored
+2
-9
@@ -1,4 +1,4 @@
|
||||
// Type definitions for validator.js v6.3
|
||||
// Type definitions for validator.js v7.0
|
||||
// Project: https://github.com/chriso/validator.js
|
||||
// Definitions by: tgfjt <https://github.com/tgfjt>
|
||||
// Ilya Mochalov <https://github.com/chrootsu>
|
||||
@@ -6,6 +6,7 @@
|
||||
// Louy Alakkad <https://github.com/louy>
|
||||
// Kacper Polak <https://github.com/kacepe>
|
||||
// Bonggyun Lee <https://github.com/deptno>
|
||||
// Naoto Yokoyama <https://github.com/builtinnya>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace ValidatorJS {
|
||||
@@ -66,9 +67,6 @@ declare namespace ValidatorJS {
|
||||
// check if the string is a data uri format (https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs)
|
||||
isDataURI(str: string): boolean;
|
||||
|
||||
// check if the string is a date.
|
||||
isDate(str: string): boolean;
|
||||
|
||||
// check if the string represents a decimal number, such as 0.1, .3, 1.1, 1.00003, 4.0, etc.
|
||||
isDecimal(str: string): boolean;
|
||||
|
||||
@@ -406,11 +404,6 @@ declare module "validator/lib/isDataURI" {
|
||||
export = isDataURI;
|
||||
}
|
||||
|
||||
declare module "validator/lib/isDate" {
|
||||
const isDate: typeof validator.isDate;
|
||||
export = isDate;
|
||||
}
|
||||
|
||||
declare module "validator/lib/isDecimal" {
|
||||
const isDecimal: typeof validator.isDecimal;
|
||||
export = isDecimal;
|
||||
|
||||
@@ -20,7 +20,6 @@ import isByteLengthFunc = require('validator/lib/isByteLength');
|
||||
import isCreditCardFunc = require('validator/lib/isCreditCard');
|
||||
import isCurrencyFunc = require('validator/lib/isCurrency');
|
||||
import isDataURIFunc = require('validator/lib/isDataURI');
|
||||
import isDateFunc = require('validator/lib/isDate');
|
||||
import isDecimalFunc = require('validator/lib/isDecimal');
|
||||
import isDivisibleByFunc = require('validator/lib/isDivisibleBy');
|
||||
import isEmailFunc = require('validator/lib/isEmail');
|
||||
@@ -113,9 +112,6 @@ import whitelistFunc = require('validator/lib/whitelist');
|
||||
let _isDataURI = validator.isDataURI;
|
||||
_isDataURI = isDataURIFunc;
|
||||
|
||||
let _isDate = validator.isDate;
|
||||
_isDate = isDateFunc;
|
||||
|
||||
let _isDecimal = validator.isDecimal;
|
||||
_isDecimal = isDecimalFunc;
|
||||
|
||||
@@ -378,8 +374,6 @@ let any: any;
|
||||
|
||||
result = validator.isDataURI('sample');
|
||||
|
||||
result = validator.isDate('sample');
|
||||
|
||||
result = validator.isDecimal('sample');
|
||||
|
||||
result = validator.isDivisibleBy('sample', 2);
|
||||
|
||||
Reference in New Issue
Block a user