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.11.0 to 1.12.0

2

package.json
{
"name": "type-plus",
"description": "Provides additional types for `typescript`.",
"version": "1.11.0",
"version": "1.12.0",
"homepage": "https://github.com/unional/type-plus",

@@ -6,0 +6,0 @@ "bugs": {

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

- `Except<T, K>`: From `T`, pick a set of properties whose keys are not in the union `K`. This is the opposite of `Pick<T, K>`
- `ExcludePropType<T, U>`: excludes type `U` from properties in `T`.

@@ -58,2 +59,9 @@ - `PartialPick<T, U>`: makes the properties specified in `U` becomes optional.

### Type assertion
There are several type assertion functions inside `typeAssert`.
- `isXXX(value)`: ensure typeof `value` is `XXX`
- `noXXX(value)`: ensure typeof `value` does not contain `XXX`. i.e. cannot assign `XXX` to `value`.
## Contribute

@@ -60,0 +68,0 @@

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