@sindresorhus/is
Advanced tools
Comparing version 3.1.2 to 4.0.0
@@ -67,3 +67,3 @@ /// <reference types="node" /> | ||
var safeInteger: (value: unknown) => value is number; | ||
var plainObject: <Value = unknown>(value: unknown) => value is Record<string, Value>; | ||
var plainObject: <Value = unknown>(value: unknown) => value is Record<string | number | symbol, Value>; | ||
var typedArray: (value: unknown) => value is TypedArray; | ||
@@ -92,2 +92,3 @@ var arrayLike: <T = unknown>(value: unknown) => value is ArrayLike<T>; | ||
} | ||
declare type ObjectKey = string | number | symbol; | ||
export interface ArrayLike<T> { | ||
@@ -195,3 +196,3 @@ readonly [index: number]: T; | ||
safeInteger: (value: unknown) => asserts value is number; | ||
plainObject: <Value = unknown>(value: unknown) => asserts value is Record<string, Value>; | ||
plainObject: <Value = unknown>(value: unknown) => asserts value is Record<ObjectKey, Value>; | ||
typedArray: (value: unknown) => asserts value is TypedArray; | ||
@@ -198,0 +199,0 @@ arrayLike: <T = unknown>(value: unknown) => asserts value is ArrayLike<T>; |
{ | ||
"name": "@sindresorhus/is", | ||
"version": "3.1.2", | ||
"version": "4.0.0", | ||
"description": "Type check values", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
53086
658