@rimbu/base
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -20,4 +20,14 @@ /** | ||
export declare type IsPlainObj<T> = T extends null | undefined | number | string | boolean | bigint | symbol | AnyFunc | Iterable<unknown> | AsyncIterable<unknown> ? false : IsObjWithoutFunctions<T>; | ||
/** | ||
* Utility type that will only accept objects that are considered 'plain objects' according | ||
* to the `IsPlainObj` predicate type. | ||
* @typeparam T - the value type to test | ||
*/ | ||
export declare type PlainObj<T> = IsPlainObj<T> extends true ? T : never; | ||
/** | ||
* Utility type that will only return true if the input type T is equal to `any`. | ||
* @typeparam T - the value type to test | ||
*/ | ||
export declare type IsAny<T> = 0 extends 1 & T ? true : false; | ||
/** | ||
* Companion function to the `IsRecord<T>` type that checks whether the given object is a pure | ||
@@ -24,0 +34,0 @@ * data object. |
{ | ||
"name": "@rimbu/base", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Utilities to implement Rimbu collections", | ||
@@ -54,3 +54,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@rimbu/common": "^0.9.3", | ||
"@rimbu/common": "^0.9.4", | ||
"tslib": "^2.4.0" | ||
@@ -65,3 +65,3 @@ }, | ||
}, | ||
"gitHead": "4efaf8c469d606381517984436383fd6b1b61ec0" | ||
"gitHead": "60d3b52050fc30f10921cbf92d637362d663d7e0" | ||
} |
@@ -79,3 +79,3 @@ <p align="center"> | ||
Feel very welcome to contribute to further improve Rimbu. Please read our [Contributing guide](../../CONTRIBUTING.md). | ||
Feel very welcome to contribute to further improve Rimbu. Please read our [Contributing guide](https://github.com/rimbu-org/rimbu/blob/main/CONTRIBUTING.md). | ||
@@ -82,0 +82,0 @@ ## Contributors |
@@ -36,5 +36,16 @@ /** | ||
/** | ||
* Utility type that will only accept objects that are considered 'plain objects' according | ||
* to the `IsPlainObj` predicate type. | ||
* @typeparam T - the value type to test | ||
*/ | ||
export type PlainObj<T> = IsPlainObj<T> extends true ? T : never; | ||
/** | ||
* Utility type that will only return true if the input type T is equal to `any`. | ||
* @typeparam T - the value type to test | ||
*/ | ||
export type IsAny<T> = 0 extends 1 & T ? true : false; | ||
/** | ||
* Companion function to the `IsRecord<T>` type that checks whether the given object is a pure | ||
@@ -41,0 +52,0 @@ * data object. |
Sorry, the diff of this file is not supported yet
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
51807
864
Updated@rimbu/common@^0.9.4