extra-utils 3.2.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,21 +11,56 @@ yarn add extra-utils
11
11
  ## API
12
12
  ### pipe
13
13
  ```ts
14
- function pipe<T, U, V>(
15
- value: T
14
+ function pipe<A, B, C, D, E>(
15
+ value: A
16
16
  , ...operators: [
17
- (value: T) => U
18
- , ...Array<(value: U) => U>
19
- , (value: U) => V
17
+ (value: A) => B
18
+ , (value: B) => C
19
+ , ...Array<(value: C) => C>
20
+ , (value: C) => D
21
+ , (value: D) => E
20
22
  ]
21
- ): V
22
- function pipe<T, U>(
23
- value: T
23
+ ): E
24
+ function pipe<A, B, C, D>(
25
+ value: A
26
+ , ...operators: [
27
+ (value: A) => B
28
+ , (value: B) => C
29
+ , ...Array<(value: C) => C>
30
+ , (value: C) => D
31
+ ]
32
+ ): D
33
+ function pipe<A, B, C, D>(
34
+ value: A
35
+ , ...operators: [
36
+ (value: A) => B
37
+ , ...Array<(value: B) => B>
38
+ , (value: B) => C
39
+ , (value: C) => D
40
+ ]
41
+ ): D
42
+ function pipe<A, B, C>(
43
+ value: A
44
+ , ...operators: [
45
+ (value: A) => B
46
+ , ...Array<(value: B) => B>
47
+ , (value: B) => C
48
+ ]
49
+ ): C
50
+ function pipe<A, B>(
51
+ value: A
52
+ , ...operators: [
53
+ (value: A) => B
54
+ , ...Array<(value: B) => B>
55
+ ]
56
+ ): B
57
+ function pipe<A, B>(
58
+ value: A
24
59
  , ...operators: [
25
- ...Array<(value: T) => T>
26
- , (value: T) => U
60
+ ...Array<(value: A) => A>
61
+ , (value: A) => B
27
62
  ]
28
- ): U
63
+ ): B
29
64
  function pipe<T>(
30
65
  value: T
31
66
  , ...operators: Array<(value: T) => T>
package/lib/pipe.d.ts CHANGED
@@ -1,10 +1,33 @@
1
- export declare function pipe<T, U, V>(value: T, ...operators: [
2
- (value: T) => U,
3
- ...Array<(value: U) => U>,
4
- (value: U) => V
5
- ]): V;
6
- export declare function pipe<T, U>(value: T, ...operators: [
7
- ...Array<(value: T) => T>,
8
- (value: T) => U
9
- ]): U;
1
+ export declare function pipe<A, B, C, D, E>(value: A, ...operators: [
2
+ (value: A) => B,
3
+ (value: B) => C,
4
+ ...Array<(value: C) => C>,
5
+ (value: C) => D,
6
+ (value: D) => E
7
+ ]): E;
8
+ export declare function pipe<A, B, C, D>(value: A, ...operators: [
9
+ (value: A) => B,
10
+ (value: B) => C,
11
+ ...Array<(value: C) => C>,
12
+ (value: C) => D
13
+ ]): D;
14
+ export declare function pipe<A, B, C, D>(value: A, ...operators: [
15
+ (value: A) => B,
16
+ ...Array<(value: B) => B>,
17
+ (value: B) => C,
18
+ (value: C) => D
19
+ ]): D;
20
+ export declare function pipe<A, B, C>(value: A, ...operators: [
21
+ (value: A) => B,
22
+ ...Array<(value: B) => B>,
23
+ (value: B) => C
24
+ ]): C;
25
+ export declare function pipe<A, B>(value: A, ...operators: [
26
+ (value: A) => B,
27
+ ...Array<(value: B) => B>
28
+ ]): B;
29
+ export declare function pipe<A, B>(value: A, ...operators: [
30
+ ...Array<(value: A) => A>,
31
+ (value: A) => B
32
+ ]): B;
10
33
  export declare function pipe<T>(value: T, ...operators: Array<(value: T) => T>): T;
package/lib/pipe.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pipe.js","sourceRoot":"","sources":["../src/pipe.ts"],"names":[],"mappings":";;;AAmBA,SAAgB,IAAI,CAClB,KAAQ,EACR,GAAG,SAG0B;IAE7B,IAAI,MAAM,GAAc,KAAK,CAAA;IAC7B,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;QAChC,MAAM,GAAG,QAAQ,CAAC,MAAa,CAAC,CAAA;KACjC;IACD,OAAO,MAAW,CAAA;AACpB,CAAC;AAZD,oBAYC"}
1
+ {"version":3,"file":"pipe.js","sourceRoot":"","sources":["../src/pipe.ts"],"names":[],"mappings":";;;AAsDA,SAAgB,IAAI,CAClB,KAAQ,EACR,GAAG,SAAyC;IAE5C,IAAI,MAAM,GAAU,KAAK,CAAA;IACzB,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;QAChC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;KAC1B;IACD,OAAO,MAAW,CAAA;AACpB,CAAC;AATD,oBASC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-utils",
3
- "version": "3.2.0",
3
+ "version": "3.3.1",
4
4
  "description": "Utilities for JavaScript and Typescript",
5
5
  "files": [
6
6
  "lib"