From 40dfeac331d40f3ed49da38e80adcb38a1ced37a Mon Sep 17 00:00:00 2001 From: &y Date: Wed, 11 Sep 2019 13:58:52 -0400 Subject: [PATCH] Adds `is.[not].primitive` to the Type File (#17) Adds `is.primitive`, and `is.not.primitive` to the TypeScript Type File. --- index.d.ts | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index a2b9973..e9fc34b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -287,6 +287,7 @@ declare namespace is { function number (input?: any): boolean; function nullOrWhitespace (input?: any): boolean; function decimal (input?: any, places?: number): boolean; + function primitive (input?: any): boolean; namespace not { function defined (input?: any): boolean; @@ -303,5 +304,6 @@ declare namespace is { function number (input?: any): boolean; function nullOrWhitespace (input?: any): boolean; function decimal (input?: any, places?: number): boolean; + function primitive (input?: any): boolean; } } diff --git a/package.json b/package.json index 63f28f9..5fd42aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polyn/blueprint", - "version": "2.5.0", + "version": "2.5.1", "description": "An easy to use, flexible, and powerful validation library for nodejs and browsers", "main": "index.js", "types": "index.d.ts",