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

@ts-common/tuple

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-common/tuple - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

14

index.d.ts
export declare type Tuple0 = ReadonlyArray<never>;
export declare const tuple0: Tuple0;
export interface Tuple1<T> extends Iterable<T> {
readonly length: 1;
readonly [0]: T;
readonly [1]?: never;
}
export declare const tuple1: <T>(v: T) => Tuple1<T>;
export interface Tuple2<T0, T1> extends Iterable<T0 | T1> {
readonly length: 2;
readonly [0]: T0;
readonly [1]: T1;
readonly [2]?: never;
}
export declare const tuple2: <T0, T1>(v0: T0, v1: T1) => Tuple2<T0, T1>;
export interface Tuple3<T0, T1, T2> extends Iterable<T0 | T1 | T2> {
readonly length: 3;
readonly [0]: T0;
readonly [1]: T1;
readonly [2]: T2;
readonly [3]?: never;
}
export declare const tuple3: <T0, T1, T2>(v0: T0, v1: T1, v2: T2) => Tuple3<T0, T1, T2>;
export interface Tuple4<T0, T1, T2, T3> extends Iterable<T0 | T1 | T2 | T3> {
readonly length: 4;
readonly [0]: T0;

@@ -26,6 +27,6 @@ readonly [1]: T1;

readonly [3]: T3;
readonly [4]?: never;
}
export declare const tuple4: <T0, T1, T2, T3>(v0: T0, v1: T1, v2: T2, v3: T3) => Tuple4<T0, T1, T2, T3>;
export interface Tuple5<T0, T1, T2, T3, T4> extends Iterable<T0 | T1 | T2 | T3 | T4> {
readonly length: 5;
readonly [0]: T0;

@@ -36,6 +37,6 @@ readonly [1]: T1;

readonly [4]: T4;
readonly [5]?: never;
}
export declare const tuple5: <T0, T1, T2, T3, T4>(v0: T0, v1: T1, v2: T2, v3: T3, v4: T4) => Tuple5<T0, T1, T2, T3, T4>;
export interface Tuple6<T0, T1, T2, T3, T4, T5> extends Iterable<T0 | T1 | T2 | T3 | T4 | T5> {
readonly length: 6;
readonly [0]: T0;

@@ -47,6 +48,6 @@ readonly [1]: T1;

readonly [5]: T5;
readonly [6]?: never;
}
export declare const tuple6: <T0, T1, T2, T3, T4, T5>(v0: T0, v1: T1, v2: T2, v3: T3, v4: T4, v5: T5) => Tuple6<T0, T1, T2, T3, T4, T5>;
export interface Tuple7<T0, T1, T2, T3, T4, T5, T6> extends Iterable<T0 | T1 | T2 | T3 | T4 | T5 | T6> {
readonly length: 7;
readonly [0]: T0;

@@ -59,4 +60,3 @@ readonly [1]: T1;

readonly [6]: T6;
readonly [7]?: never;
}
export declare const tuple7: <T0, T1, T2, T3, T4, T5, T6>(v0: T0, v1: T1, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => Tuple7<T0, T1, T2, T3, T4, T5, T6>;
{
"name": "@ts-common/tuple",
"version": "0.0.3",
"version": "0.0.4",
"description": "Tuples",

@@ -25,4 +25,4 @@ "main": "index.js",

"devDependencies": {
"typescript": "^3.1.6"
"typescript": "^3.2.1"
}
}
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