Socket
Socket
Sign inDemoInstall

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.6 to 9.5.7-test.1614905356046

22

CHANGELOG.md

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

### [9.5.7](https://github.com/millsp/ts-toolbelt/compare/v9.5.1...v9.5.7) (2021-03-05)
### Bug Fixes
* **f.narrow:** fix variance and array inference ([4c7618d](https://github.com/millsp/ts-toolbelt/commit/4c7618d77b07d6b8c6dfd5087aa85a073bf57db3))
* **f.narrow:** higher order function support ([dad05ee](https://github.com/millsp/ts-toolbelt/commit/dad05eec6e6710ea4f63063658a3dee4d9c0ca28))
* **f.narrow:** preserve functions ([c34f1b9](https://github.com/millsp/ts-toolbelt/commit/c34f1b95d0e0855203104eb696cfcb8221a65374))
* **f.narrow:** revert variance fixes ([12e014a](https://github.com/millsp/ts-toolbelt/commit/12e014a3f3d34047a3722486a73493f857a3697a))
* **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))
* **release:** 9.5.3 ([0836f6e](https://github.com/millsp/ts-toolbelt/commit/0836f6e8187287a0c86f249e4e552d68a44e4f60))
* **release:** 9.5.4 ([855855e](https://github.com/millsp/ts-toolbelt/commit/855855e520ed4a04059f9d61884d2045dd0d751b))
* **release:** 9.5.5 ([e28bddf](https://github.com/millsp/ts-toolbelt/commit/e28bddf33066850a764e2ba344883ff84da561b9))
* **release:** 9.5.6 ([b8e0d0a](https://github.com/millsp/ts-toolbelt/commit/b8e0d0a83228baf666e00f4fdb0d99ca936c133f))
* cleanup ([6f23f2e](https://github.com/millsp/ts-toolbelt/commit/6f23f2ec79145a0545eb45d15d50d0363a119b12))
### [9.5.6](https://github.com/millsp/ts-toolbelt/compare/v9.5.1...v9.5.6) (2021-03-04)

@@ -7,0 +29,0 @@

2

out/Function/_Internal.d.ts

@@ -16,2 +16,2 @@ /**

*/
export declare type Narrowable = string | number | bigint | boolean | [];
export declare type Narrowable = (() => any) | string | number | bigint | boolean | [];

@@ -1,9 +0,9 @@

import { Extends } from '../Any/Extends';
import { If } from '../Any/If';
import { Cast } from '../Any/Cast';
import { Narrowable } from './_Internal';
declare type EvalList<A> = A extends [] ? [] : never;
/**
* @hidden
*/
declare type NarrowRaw<A> = (A extends Narrowable ? A : never) | {
[K in keyof A]: A[K] extends Function ? A[K] : NarrowRaw<A[K]>;
declare type NarrowRaw<A> = EvalList<A> | (A extends Narrowable ? A : never) | {
[K in keyof A]: NarrowRaw<A[K]>;
};

@@ -28,3 +28,3 @@ /**

*/
declare type Narrow<A extends any> = NarrowRaw<If<Extends<A, any[]>, A | [], A>>;
declare type Narrow<A extends any> = Cast<A, NarrowRaw<A>>;
export { Narrow };
{
"name": "ts-toolbelt",
"version": "9.5.6",
"version": "9.5.7-test.1614905356046",
"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