effect 3.6.5 → 3.6.6

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.
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.setCurrentVersion = exports.getCurrentVersion = void 0;
7
- let moduleVersion = "3.6.5";
7
+ let moduleVersion = "3.6.6";
8
8
  const getCurrentVersion = () => moduleVersion;
9
9
  exports.getCurrentVersion = getCurrentVersion;
10
10
  const setCurrentVersion = version => {
@@ -828,8 +828,8 @@ export declare const concat: {
828
828
  export declare const concatAll: <A, E, R>(streams: Chunk.Chunk<Stream<A, E, R>>) => Stream<A, E, R>;
829
829
  /**
830
830
  * Composes this stream with the specified stream to create a cartesian
831
- * product of elements. The `that` stream would be run multiple times, for
832
- * every element in the `this` stream.
831
+ * product of elements. The `right` stream would be run multiple times, for
832
+ * every element in the `left` stream.
833
833
  *
834
834
  * See also `Stream.zip` for the more common point-wise variant.
835
835
  *
@@ -853,13 +853,13 @@ export declare const concatAll: <A, E, R>(streams: Chunk.Chunk<Stream<A, E, R>>)
853
853
  * @category utils
854
854
  */
855
855
  export declare const cross: {
856
- <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<[A, A2], E2 | E, R2 | R>;
857
- <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[A, A2], E | E2, R | R2>;
856
+ <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<[AL, AR], EL | ER, RL | RR>;
857
+ <AL, ER, RR, AR, EL, RL>(left: Stream<AL, ER, RR>, right: Stream<AR, EL, RL>): Stream<[AL, AR], EL | ER, RL | RR>;
858
858
  };
859
859
  /**
860
860
  * Composes this stream with the specified stream to create a cartesian
861
- * product of elements, but keeps only elements from this stream. The `that`
862
- * stream would be run multiple times, for every element in the `this` stream.
861
+ * product of elements, but keeps only elements from `left` stream. The `right`
862
+ * stream would be run multiple times, for every element in the `left` stream.
863
863
  *
864
864
  * See also `Stream.zipLeft` for the more common point-wise variant.
865
865
  *
@@ -867,13 +867,13 @@ export declare const cross: {
867
867
  * @category utils
868
868
  */
869
869
  export declare const crossLeft: {
870
- <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
871
- <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A, E | E2, R | R2>;
870
+ <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL, EL | ER, RL | RR>;
871
+ <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL, EL | ER, RL | RR>;
872
872
  };
873
873
  /**
874
874
  * Composes this stream with the specified stream to create a cartesian
875
- * product of elements, but keeps only elements from the other stream. The
876
- * `that` stream would be run multiple times, for every element in the `this`
875
+ * product of elements, but keeps only elements from the `right` stream. The
876
+ * `left` stream would be run multiple times, for every element in the `right`
877
877
  * stream.
878
878
  *
879
879
  * See also `Stream.zipRight` for the more common point-wise variant.
@@ -882,13 +882,13 @@ export declare const crossLeft: {
882
882
  * @category utils
883
883
  */
884
884
  export declare const crossRight: {
885
- <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>;
886
- <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A2, E | E2, R | R2>;
885
+ <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AR, EL | ER, RL | RR>;
886
+ <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AR, EL | ER, RL | RR>;
887
887
  };
888
888
  /**
889
889
  * Composes this stream with the specified stream to create a cartesian
890
- * product of elements with a specified function. The `that` stream would be
891
- * run multiple times, for every element in the `this` stream.
890
+ * product of elements with a specified function. The `right` stream would be
891
+ * run multiple times, for every element in the `left` stream.
892
892
  *
893
893
  * See also `Stream.zipWith` for the more common point-wise variant.
894
894
  *
@@ -896,8 +896,8 @@ export declare const crossRight: {
896
896
  * @category utils
897
897
  */
898
898
  export declare const crossWith: {
899
- <B, E2, R2, A, C>(that: Stream<B, E2, R2>, f: (a: A, b: B) => C): <E, R>(self: Stream<A, E, R>) => Stream<C, E2 | E, R2 | R>;
900
- <A, E, R, B, E2, R2, C>(self: Stream<A, E, R>, that: Stream<B, E2, R2>, f: (a: A, b: B) => C): Stream<C, E | E2, R | R2>;
899
+ <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>;
900
+ <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): Stream<A, EL | ER, RL | RR>;
901
901
  };
902
902
  /**
903
903
  * Delays the emission of values by holding new values for a set duration. If
@@ -4570,8 +4570,8 @@ export declare const zipAllWith: {
4570
4570
  * @category zipping
4571
4571
  */
4572
4572
  export declare const zipLatest: {
4573
- <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<[A, A2], E2 | E, R2 | R>;
4574
- <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[A, A2], E | E2, R | R2>;
4573
+ <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<[AL, AR], EL | ER, RL | RR>;
4574
+ <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<[AL, AR], EL | ER, RL | RR>;
4575
4575
  };
4576
4576
  /**
4577
4577
  * Zips multiple streams so that when a value is emitted by any of the streams,
@@ -4625,12 +4625,12 @@ export declare const zipLatestAll: <T extends ReadonlyArray<Stream<any, any, any
4625
4625
  * @category zipping
4626
4626
  */
4627
4627
  export declare const zipLatestWith: {
4628
- <A2, E2, R2, A, A3>(that: Stream<A2, E2, R2>, f: (a: A, a2: A2) => A3): <E, R>(self: Stream<A, E, R>) => Stream<A3, E2 | E, R2 | R>;
4629
- <A, E, R, A2, E2, R2, A3>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>, f: (a: A, a2: A2) => A3): Stream<A3, E | E2, R | R2>;
4628
+ <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>;
4629
+ <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): Stream<A, EL | ER, RL | RR>;
4630
4630
  };
4631
4631
  /**
4632
4632
  * Zips this stream with another point-wise, but keeps only the outputs of
4633
- * this stream.
4633
+ * `left` stream.
4634
4634
  *
4635
4635
  * The new stream will end when one of the sides ends.
4636
4636
  *
@@ -4638,12 +4638,12 @@ export declare const zipLatestWith: {
4638
4638
  * @category zipping
4639
4639
  */
4640
4640
  export declare const zipLeft: {
4641
- <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
4642
- <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A, E | E2, R | R2>;
4641
+ <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL, ER | EL, RR | RL>;
4642
+ <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL, EL | ER, RL | RR>;
4643
4643
  };
4644
4644
  /**
4645
4645
  * Zips this stream with another point-wise, but keeps only the outputs of the
4646
- * other stream.
4646
+ * `right` stream.
4647
4647
  *
4648
4648
  * The new stream will end when one of the sides ends.
4649
4649
  *
@@ -4651,8 +4651,8 @@ export declare const zipLeft: {
4651
4651
  * @category zipping
4652
4652
  */
4653
4653
  export declare const zipRight: {
4654
- <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>;
4655
- <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A2, E | E2, R | R2>;
4654
+ <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AR, ER | EL, RR | RL>;
4655
+ <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AR, EL | ER, RL | RR>;
4656
4656
  };
4657
4657
  /**
4658
4658
  * Zips this stream with another point-wise and applies the function to the
@@ -4677,8 +4677,8 @@ export declare const zipRight: {
4677
4677
  * @category zipping
4678
4678
  */
4679
4679
  export declare const zipWith: {
4680
- <A2, E2, R2, A, A3>(that: Stream<A2, E2, R2>, f: (a: A, a2: A2) => A3): <E, R>(self: Stream<A, E, R>) => Stream<A3, E2 | E, R2 | R>;
4681
- <A, E, R, A2, E2, R2, A3>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>, f: (a: A, a2: A2) => A3): Stream<A3, E | E2, R | R2>;
4680
+ <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>;
4681
+ <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): Stream<A, EL | ER, RL | RR>;
4682
4682
  };
4683
4683
  /**
4684
4684
  * Zips this stream with another point-wise and applies the function to the