Comparing version 1.3.0 to 1.3.1
@@ -25,6 +25,6 @@ declare type ObjectWith<K extends PropertyKey> = { | ||
export declare type SerializablePrimitive = null | boolean | number | string; | ||
export declare type SerializableObject = { | ||
export declare type SerializableObject = Partial<{ | ||
[key: string]: Serializable; | ||
}; | ||
}>; | ||
export declare type Serializable = SerializablePrimitive | SerializableObject | SerializableArray; | ||
export {}; |
{ | ||
"name": "isntnt", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A collection of composable JavaScript runtime type predicates with TypeScript type guard declarations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -252,3 +252,3 @@ Isntnt is a collection of composable JavaScript runtime type predicates with TypeScript type guard declarations. Supports generics including union and intersection types. | ||
```typescript | ||
isObject(value) // value is object | ||
isObject(value) // value is {} | ||
``` | ||
@@ -262,2 +262,7 @@ | ||
## isPlainObject | ||
```typescript | ||
isPlainObject({}) // value is {} | ||
``` | ||
## isPositive | ||
@@ -264,0 +269,0 @@ |
@@ -38,3 +38,3 @@ type ObjectWith<K extends PropertyKey> = { [P in K]: unknown } | ||
export type SerializablePrimitive = null | boolean | number | string | ||
export type SerializableObject = { [key: string]: Serializable } | ||
export type SerializableObject = Partial<{ [key: string]: Serializable }> | ||
export type Serializable = SerializablePrimitive | SerializableObject | SerializableArray |
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
155911
447