Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-plus

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-plus - npm Package Compare versions

Comparing version 1.31.1 to 1.31.2

2

package.json
{
"name": "type-plus",
"version": "1.31.1",
"version": "1.31.2",
"description": "Provides additional types for `typescript`.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/unional/type-plus",

@@ -103,3 +103,2 @@ # type-plus

- `assertType.noXXX(value)`: ensure typeof `value` does not contain `XXX`. i.e. cannot assign `XXX` to `value`.
- `assertType.hasProperty(value, prop)`: assert `value` has property `prop`. This will pick the correct union type.
- `typeAssert.*` (deprecated) replaced by `assertType`.

@@ -121,2 +120,3 @@ - `typeAssertion<T>()`: creates a type assertion function of type `T`

- `hasKey()`: function of `HasKey`.
- `hasProperty(value, prop)`: assert `value` has property `prop`. This will pick the correct union type.
- `pick(obj, ...props)`: pick properties from `obj`.

@@ -123,0 +123,0 @@ - `omit(obj, ...props)`: omit properties from `obj`.

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc