Socket
Socket
Sign inDemoInstall

@rimbu/base

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/base - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

10

dist/types/plain-object.d.ts

@@ -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.

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc