ts-toolbelt
Advanced tools
Comparing version 9.5.2 to 9.5.3-test.1614727682067
@@ -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 @@ |
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": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
248596
6036
1