tiny-types
Advanced tools
Comparing version 1.16.0 to 1.16.1
@@ -16,2 +16,2 @@ import { Predicate } from './Predicate'; | ||
*/ | ||
export declare function isPlainObject(): Predicate<object>; | ||
export declare function isPlainObject<T extends object = object>(): Predicate<T>; |
{ | ||
"name": "tiny-types", | ||
"version": "1.16.0", | ||
"version": "1.16.1", | ||
"description": "A tiny library that brings Tiny Types to JavaScript and TypeScript", | ||
@@ -53,4 +53,4 @@ "main": "lib/index.js", | ||
"esdoc": "^1.1.0", | ||
"esdoc-importpath-plugin": "^1.0.2", | ||
"esdoc-inject-style-plugin": "^1.0.0", | ||
"esdoc-importpath-plugin": "^1.0.2", | ||
"esdoc-standard-plugin": "^1.0.0", | ||
@@ -63,4 +63,4 @@ "esdoc-typescript-plugin": "^1.0.1", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.3.6", | ||
"sinon": "^9.2.3", | ||
"semantic-release": "^17.3.7", | ||
"sinon": "^9.2.4", | ||
"sinon-chai": "^3.5.0", | ||
@@ -67,0 +67,0 @@ "ts-node": "^9.1.1", |
@@ -38,4 +38,4 @@ import { Predicate } from './Predicate'; | ||
*/ | ||
export function isPlainObject(): Predicate<object> { | ||
return Predicate.to(`be a plain object`, (value: object) => { | ||
export function isPlainObject<T extends object = object>(): Predicate<T> { | ||
return Predicate.to(`be a plain object`, (value: T) => { | ||
if (! isObject(value)) { | ||
@@ -42,0 +42,0 @@ return false; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198184