You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@types/validator

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/validator - npm Package Compare versions

Comparing version
13.15.9
to
13.15.10
+1
-0
validator/es/lib/isDate.d.ts
import validator from "../../";
export type IsDateOptions = validator.IsDateOptions;
export default validator.isDate;
import validator from "../../";
export type IsRgbColorOptions = validator.IsRgbColorOptions;
export default validator.isRgbColor;
+6
-4

@@ -420,3 +420,4 @@ import * as _isBoolean from "./lib/isBoolean";

*/
export function isDate(str: string, options?: IsDateOptions): boolean;
export function isDate(input: Date, formatOrOptions: IsDateOptions & { strictMode: true }): false;
export function isDate(input: string | Date, formatOrOptions?: string | IsDateOptions): boolean;

@@ -635,3 +636,3 @@ export type DecimalLocale = FloatLocale;

*/
export function isRgbColor(str: string, options?: IsRgbColorOptions): boolean;
export function isRgbColor(str: string, includePercentValuesOrOptions?: boolean | IsRgbColorOptions): boolean;

@@ -887,3 +888,3 @@ export type IdentityCardLocale =

*/
discreteLengths?: number | Array<number> | undefined;
discreteLengths?: Array<number> | undefined;
}

@@ -898,3 +899,4 @@

*/
export function isLength(str: string, options?: IsLengthOptions): boolean;
export function isLength(str: string, minOrOptions?: number | IsLengthOptions): boolean;
export function isLength(str: string, min: number, max: number): boolean;

@@ -901,0 +903,0 @@ export type LicensePlateLocale =

import validator from "../";
export type IsDateOptions = validator.IsDateOptions;
export default validator.isDate;
import validator from "../";
export type IsRgbColorOptions = validator.IsRgbColorOptions;
export default validator.isRgbColor;
{
"name": "@types/validator",
"version": "13.15.9",
"version": "13.15.10",
"description": "TypeScript definitions for validator",

@@ -84,4 +84,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator",

"peerDependencies": {},
"typesPublisherContentHash": "b4eb26b65b7f92dc2a767ffaecabbc1296c799a33fad4ee317173b596f04829c",
"typesPublisherContentHash": "5f7b50fa2d47d206fa5f2c3d027a72996c5b3919a0774e1b2e9ac453b1a36cd1",
"typeScriptVersion": "5.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 14 Nov 2025 18:02:08 GMT
* Last updated: Mon, 17 Nov 2025 21:33:59 GMT
* Dependencies: none

@@ -14,0 +14,0 @@