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

ts-toolbelt

Package Overview
Dependencies
Maintainers
1
Versions
916
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-toolbelt - npm Package Compare versions

Comparing version 9.5.2 to 9.5.3-test.1614727682067

13

CHANGELOG.md

@@ -5,2 +5,15 @@ # Changelog

### [9.5.3](https://github.com/millsp/ts-toolbelt/compare/v9.5.1...v9.5.3) (2021-03-02)
### Bug Fixes
* **f.narrow:** variance ([866ecd7](https://github.com/millsp/ts-toolbelt/commit/866ecd76744fc38244d85e7ef7b4bb90105cf7eb))
* **fn:** allow for curried in compose ([2bc5604](https://github.com/millsp/ts-toolbelt/commit/2bc560446916b423977c25e396b4f1f310b6c03f))
### Others
* **release:** 9.5.2 ([ec4a953](https://github.com/millsp/ts-toolbelt/commit/ec4a953cabe6c4d704c0dca5f37d1dc630de047b))
### [9.5.2](https://github.com/millsp/ts-toolbelt/compare/v9.5.1...v9.5.2) (2021-03-01)

@@ -7,0 +20,0 @@

12

out/Function/Narrow.d.ts
import { Cast } from '../Any/Cast';
import { Narrowable } from './_Internal';
/**
* Basic type helper
* @hidden
*/
declare type _Narrow<A> = [] | (A extends Narrowable ? A : never) | ({
[K in keyof A]: _Narrow<A[K]>;
declare type NarrowRaw<A> = [] | (A extends Narrowable ? A : never) | ({
[K in keyof A]: NarrowRaw<A[K]>;
});
/**
* Enforce proper variance
* @hidden
*/
declare type NarrowVar<A, N = NarrowRaw<A>> = N | Cast<A, N>;
/**
* Prevent type widening on generic function parameters

@@ -27,3 +33,3 @@ * @param A to narrow

*/
declare type Narrow<A extends any> = Cast<A, _Narrow<A>>;
declare type Narrow<A extends any> = NarrowVar<A>;
export { Narrow };
{
"name": "ts-toolbelt",
"version": "9.5.2",
"version": "9.5.3-test.1614727682067",
"description": "TypeScript's largest utility library",

@@ -5,0 +5,0 @@ "keywords": [

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