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

@waiting/shared-types

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-types - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

dist/lib/tuple.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [4.4.0](https://github.com/waitingsong/shared-types/compare/v4.3.0...v4.4.0) (2020-06-30)
### Features
* **types:** add types, set deprecated types ([79e1f17](https://github.com/waitingsong/shared-types/commit/79e1f1718de825ad67407a40994f8f3452b51821))
# [4.3.0](https://github.com/waitingsong/shared-types/compare/v4.2.0...v4.3.0) (2020-06-21)

@@ -8,0 +19,0 @@

2

dist/index.cjs.js

@@ -5,3 +5,3 @@ /**

*
* @version 4.2.0
* @version 4.3.0
* @author waiting

@@ -8,0 +8,0 @@ * @license MIT

@@ -0,4 +1,16 @@

/**
* @deprecated use `TupleHead` instead
*/
export declare type Head<Tuple extends any[]> = Tuple extends [infer H, ...any[]] ? H : never;
/**
* @deprecated use `TupleTail` instead
*/
export declare type Tail<Tuple extends any[]> = ((...x: Tuple) => void) extends ((h: any, ...rest: infer R) => void) ? R : never;
/**
* @deprecated use `TupleUnshift` instead
*/
export declare type Unshift<Tuple extends any[], Element> = ((h: Element, ...tuple: Tuple) => void) extends (...x: infer R) => void ? R : never;
/**
* @deprecated use `TupleLast` instead
*/
export declare type Last<Tuple extends any[]> = {

@@ -14,3 +26,9 @@ 1: Tuple[0];

export declare type ToTuple<T> = T extends any[] ? T : any[];
/**
* @deprecated use `TuplePush` instead
*/
export declare type Push<Tuple extends any[], Element, R = Reverse<Tuple>, T extends any[] = ToTuple<R>> = Reverse<Unshift<T, Element>>;
/**
* @deprecated use `TupleConcat` instead
*/
export declare type Concat<Tuple1 extends any[], Tuple2 extends any[], R = Reverse<Tuple1>, T extends any[] = ToTuple<R>> = Concat_<T, Tuple2>;

@@ -17,0 +35,0 @@ declare type Concat_<Tuple1 extends any[], Tuple2 extends any[]> = {

@@ -6,1 +6,2 @@ export * from './alias';

export * from './union2tuple';
export * from './tuple';

@@ -6,1 +6,2 @@ export * from './alias';

export * from './union2tuple';
export * from './tuple';
{
"name": "@waiting/shared-types",
"author": "waiting",
"version": "4.3.0",
"version": "4.4.0",
"description": "shared typescript types",

@@ -74,3 +74,3 @@ "keywords": [

},
"gitHead": "c17f9abe6d932c281f8b6360e88ec7d835a066ff"
"gitHead": "20c611b5eece54cbe8c6ce57aeb069ee656337be"
}
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