Skip to content

Commit

Permalink
Adds is.[not].primitive to the Type File (#17)
Browse files Browse the repository at this point in the history
Adds `is.primitive`, and `is.not.primitive` to the TypeScript Type File.
  • Loading branch information
losandes authored Sep 11, 2019
1 parent afb6076 commit 40dfeac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 40dfeac

Please sign in to comment.