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

@qiwi/substrate-types

Package Overview
Dependencies
Maintainers
5
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qiwi/substrate-types - npm Package Compare versions

Comparing version 1.47.3 to 1.48.0

4

buildstamp.json
{
"git": {
"commitId": "029dc83fadd10c6a710c969be85b8a40d3f27fc1",
"commitId": "2bad474f1c9956fd4beccb432b329538bcffe34b",
"repoUrl": "https://github.com/qiwi/substrate.git",
"repoName": "qiwi/substrate"
},
"date": "2021-02-25T06:54:50.680Z"
"date": "2021-02-28T12:58:54.609Z"
}

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

# @qiwi/substrate-types [1.48.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.47.3...@qiwi/substrate-types@1.48.0) (2021-02-28)
### Features
* **types:** add GetLength helper ([75ca022](https://github.com/qiwi/substrate/commit/75ca0220324d544af7deade7e196cdb3c61d9b30))
* **types:** add Prev helper ([07ad9e7](https://github.com/qiwi/substrate/commit/07ad9e79077449ad1c79820b65434e49638b7133))
## @qiwi/substrate-types [1.47.3](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.47.2...@qiwi/substrate-types@1.47.3) (2021-02-25)

@@ -2,0 +10,0 @@

@@ -311,2 +311,74 @@ /**

>;
declare export type Prev<T: number> = $ElementType<
[
-1,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62
],
T
>;
declare export type GetLength<
original: any[]
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any;
}

@@ -313,0 +385,0 @@

{
"name": "@qiwi/substrate-types",
"version": "1.47.3",
"version": "1.48.0",
"main": "target/es5/index.js",

@@ -54,3 +54,3 @@ "source": "target/ts/index.ts",

"conf": "9.0.2",
"config": "3.3.3",
"config": "3.3.4",
"lodash": "4.17.21",

@@ -57,0 +57,0 @@ "underscore": "1.12.0",

@@ -12,1 +12,5 @@ export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;

};
export declare type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T];
export declare type GetLength<original extends any[]> = original extends {
length: infer L;
} ? L : never;

@@ -12,1 +12,5 @@ export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;

};
export declare type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T];
export declare type GetLength<original extends any[]> = original extends {
length: infer L;
} ? L : never;

@@ -38,1 +38,11 @@ export type UnionToIntersection<U> = (

}
// prettier-ignore
export type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T];
// https://dev.to/miracleblue/how-2-typescript-get-the-last-item-type-from-a-tuple-of-types-3fh3
export type GetLength<original extends any[]> = original extends {
length: infer L
}
? L
: never

@@ -94,2 +94,6 @@ // Generated by dts-bundle v0.7.4

};
export type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T];
export type GetLength<original extends any[]> = original extends {
length: infer L;
} ? L : never;
}

@@ -96,0 +100,0 @@

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