effect 3.9.0 → 3.9.2
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/dist/cjs/BigDecimal.js +0 -3
- package/dist/cjs/BigDecimal.js.map +1 -1
- package/dist/cjs/Chunk.js +0 -3
- package/dist/cjs/Chunk.js.map +1 -1
- package/dist/cjs/Cron.js +0 -3
- package/dist/cjs/Cron.js.map +1 -1
- package/dist/cjs/DateTime.js +0 -6
- package/dist/cjs/DateTime.js.map +1 -1
- package/dist/cjs/Duration.js +0 -3
- package/dist/cjs/Duration.js.map +1 -1
- package/dist/cjs/FiberHandle.js +0 -3
- package/dist/cjs/FiberHandle.js.map +1 -1
- package/dist/cjs/FiberMap.js +0 -3
- package/dist/cjs/FiberMap.js.map +1 -1
- package/dist/cjs/FiberSet.js +0 -3
- package/dist/cjs/FiberSet.js.map +1 -1
- package/dist/cjs/Inspectable.js +1 -15
- package/dist/cjs/Inspectable.js.map +1 -1
- package/dist/cjs/List.js +0 -6
- package/dist/cjs/List.js.map +1 -1
- package/dist/cjs/Micro.js +0 -6
- package/dist/cjs/Micro.js.map +1 -1
- package/dist/cjs/MutableHashMap.js +0 -3
- package/dist/cjs/MutableHashMap.js.map +1 -1
- package/dist/cjs/MutableHashSet.js +0 -3
- package/dist/cjs/MutableHashSet.js.map +1 -1
- package/dist/cjs/MutableList.js +0 -3
- package/dist/cjs/MutableList.js.map +1 -1
- package/dist/cjs/MutableQueue.js +0 -3
- package/dist/cjs/MutableQueue.js.map +1 -1
- package/dist/cjs/MutableRef.js +0 -3
- package/dist/cjs/MutableRef.js.map +1 -1
- package/dist/cjs/SortedMap.js +0 -3
- package/dist/cjs/SortedMap.js.map +1 -1
- package/dist/cjs/SortedSet.js +0 -3
- package/dist/cjs/SortedSet.js.map +1 -1
- package/dist/cjs/Stream.js.map +1 -1
- package/dist/cjs/internal/cause.js +0 -3
- package/dist/cjs/internal/cause.js.map +1 -1
- package/dist/cjs/internal/context.js +0 -6
- package/dist/cjs/internal/context.js.map +1 -1
- package/dist/cjs/internal/core.js +0 -12
- package/dist/cjs/internal/core.js.map +1 -1
- package/dist/cjs/internal/doNotation.js.map +1 -1
- package/dist/cjs/internal/fiberId.js +0 -9
- package/dist/cjs/internal/fiberId.js.map +1 -1
- package/dist/cjs/internal/hashMap.js +0 -3
- package/dist/cjs/internal/hashMap.js.map +1 -1
- package/dist/cjs/internal/hashSet.js +0 -3
- package/dist/cjs/internal/hashSet.js.map +1 -1
- package/dist/cjs/internal/mailbox.js +0 -3
- package/dist/cjs/internal/mailbox.js.map +1 -1
- package/dist/cjs/internal/option.js +0 -3
- package/dist/cjs/internal/option.js.map +1 -1
- package/dist/cjs/internal/redBlackTree.js +0 -3
- package/dist/cjs/internal/redBlackTree.js.map +1 -1
- package/dist/cjs/internal/runtime.js +0 -3
- package/dist/cjs/internal/runtime.js.map +1 -1
- package/dist/cjs/internal/trie.js +0 -3
- package/dist/cjs/internal/trie.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Array.d.ts +4 -4
- package/dist/dts/Array.d.ts.map +1 -1
- package/dist/dts/BigDecimal.d.ts.map +1 -1
- package/dist/dts/Chunk.d.ts.map +1 -1
- package/dist/dts/Cron.d.ts.map +1 -1
- package/dist/dts/DateTime.d.ts.map +1 -1
- package/dist/dts/Duration.d.ts.map +1 -1
- package/dist/dts/Effect.d.ts +6 -6
- package/dist/dts/Effect.d.ts.map +1 -1
- package/dist/dts/Either.d.ts +4 -4
- package/dist/dts/Either.d.ts.map +1 -1
- package/dist/dts/FiberHandle.d.ts.map +1 -1
- package/dist/dts/FiberMap.d.ts.map +1 -1
- package/dist/dts/FiberSet.d.ts.map +1 -1
- package/dist/dts/Inspectable.d.ts +0 -15
- package/dist/dts/Inspectable.d.ts.map +1 -1
- package/dist/dts/List.d.ts.map +1 -1
- package/dist/dts/Micro.d.ts +4 -4
- package/dist/dts/Micro.d.ts.map +1 -1
- package/dist/dts/MutableHashMap.d.ts.map +1 -1
- package/dist/dts/MutableHashSet.d.ts.map +1 -1
- package/dist/dts/MutableList.d.ts.map +1 -1
- package/dist/dts/MutableQueue.d.ts.map +1 -1
- package/dist/dts/MutableRef.d.ts.map +1 -1
- package/dist/dts/Option.d.ts +4 -4
- package/dist/dts/Option.d.ts.map +1 -1
- package/dist/dts/STM.d.ts +4 -4
- package/dist/dts/STM.d.ts.map +1 -1
- package/dist/dts/SortedMap.d.ts.map +1 -1
- package/dist/dts/SortedSet.d.ts.map +1 -1
- package/dist/dts/Stream.d.ts +11 -11
- package/dist/dts/Stream.d.ts.map +1 -1
- package/dist/dts/internal/core.d.ts.map +1 -1
- package/dist/dts/internal/hashMap.d.ts.map +1 -1
- package/dist/esm/BigDecimal.js +1 -4
- package/dist/esm/BigDecimal.js.map +1 -1
- package/dist/esm/Chunk.js +1 -4
- package/dist/esm/Chunk.js.map +1 -1
- package/dist/esm/Cron.js +1 -4
- package/dist/esm/Cron.js.map +1 -1
- package/dist/esm/DateTime.js +0 -6
- package/dist/esm/DateTime.js.map +1 -1
- package/dist/esm/Duration.js +1 -4
- package/dist/esm/Duration.js.map +1 -1
- package/dist/esm/FiberHandle.js +0 -3
- package/dist/esm/FiberHandle.js.map +1 -1
- package/dist/esm/FiberMap.js +0 -3
- package/dist/esm/FiberMap.js.map +1 -1
- package/dist/esm/FiberSet.js +0 -3
- package/dist/esm/FiberSet.js.map +1 -1
- package/dist/esm/Inspectable.js +0 -14
- package/dist/esm/Inspectable.js.map +1 -1
- package/dist/esm/List.js +1 -7
- package/dist/esm/List.js.map +1 -1
- package/dist/esm/Micro.js +1 -7
- package/dist/esm/Micro.js.map +1 -1
- package/dist/esm/MutableHashMap.js +1 -4
- package/dist/esm/MutableHashMap.js.map +1 -1
- package/dist/esm/MutableHashSet.js +1 -4
- package/dist/esm/MutableHashSet.js.map +1 -1
- package/dist/esm/MutableList.js +1 -4
- package/dist/esm/MutableList.js.map +1 -1
- package/dist/esm/MutableQueue.js +1 -4
- package/dist/esm/MutableQueue.js.map +1 -1
- package/dist/esm/MutableRef.js +1 -4
- package/dist/esm/MutableRef.js.map +1 -1
- package/dist/esm/SortedMap.js +1 -4
- package/dist/esm/SortedMap.js.map +1 -1
- package/dist/esm/SortedSet.js +1 -4
- package/dist/esm/SortedSet.js.map +1 -1
- package/dist/esm/Stream.js.map +1 -1
- package/dist/esm/internal/cause.js +1 -4
- package/dist/esm/internal/cause.js.map +1 -1
- package/dist/esm/internal/context.js +1 -7
- package/dist/esm/internal/context.js.map +1 -1
- package/dist/esm/internal/core.js +1 -13
- package/dist/esm/internal/core.js.map +1 -1
- package/dist/esm/internal/doNotation.js.map +1 -1
- package/dist/esm/internal/fiberId.js +1 -10
- package/dist/esm/internal/fiberId.js.map +1 -1
- package/dist/esm/internal/hashMap.js +1 -4
- package/dist/esm/internal/hashMap.js.map +1 -1
- package/dist/esm/internal/hashSet.js +1 -4
- package/dist/esm/internal/hashSet.js.map +1 -1
- package/dist/esm/internal/mailbox.js +0 -3
- package/dist/esm/internal/mailbox.js.map +1 -1
- package/dist/esm/internal/option.js +1 -4
- package/dist/esm/internal/option.js.map +1 -1
- package/dist/esm/internal/redBlackTree.js +1 -4
- package/dist/esm/internal/redBlackTree.js.map +1 -1
- package/dist/esm/internal/runtime.js +0 -3
- package/dist/esm/internal/runtime.js.map +1 -1
- package/dist/esm/internal/trie.js +1 -4
- package/dist/esm/internal/trie.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +4 -4
- package/src/BigDecimal.ts +1 -4
- package/src/Chunk.ts +1 -4
- package/src/Cron.ts +1 -4
- package/src/DateTime.ts +0 -6
- package/src/Duration.ts +1 -4
- package/src/Effect.ts +6 -6
- package/src/Either.ts +4 -4
- package/src/FiberHandle.ts +0 -3
- package/src/FiberMap.ts +0 -3
- package/src/FiberSet.ts +0 -3
- package/src/Inspectable.ts +0 -22
- package/src/List.ts +1 -7
- package/src/Micro.ts +5 -11
- package/src/MutableHashMap.ts +1 -4
- package/src/MutableHashSet.ts +1 -4
- package/src/MutableList.ts +1 -4
- package/src/MutableQueue.ts +1 -4
- package/src/MutableRef.ts +1 -4
- package/src/Option.ts +4 -4
- package/src/STM.ts +4 -4
- package/src/SortedMap.ts +1 -4
- package/src/SortedSet.ts +1 -4
- package/src/Stream.ts +10 -14
- package/src/internal/cause.ts +1 -4
- package/src/internal/context.ts +1 -7
- package/src/internal/core-effect.ts +4 -4
- package/src/internal/core.ts +1 -13
- package/src/internal/doNotation.ts +7 -6
- package/src/internal/fiberId.ts +1 -10
- package/src/internal/groupBy.ts +2 -2
- package/src/internal/hashMap.ts +1 -4
- package/src/internal/hashSet.ts +1 -4
- package/src/internal/mailbox.ts +0 -3
- package/src/internal/option.ts +1 -4
- package/src/internal/redBlackTree.ts +1 -4
- package/src/internal/runtime.ts +0 -3
- package/src/internal/stream.ts +4 -4
- package/src/internal/trie.ts +1 -4
- package/src/internal/version.ts +1 -1
package/src/Array.ts
CHANGED
|
@@ -5643,7 +5643,7 @@ export const bind: {
|
|
|
5643
5643
|
* @category do notation
|
|
5644
5644
|
* @since 3.2.0
|
|
5645
5645
|
*/
|
|
5646
|
-
<A extends object, N extends string, B>(tag: Exclude<N, keyof A>, f: (a: A) => ReadonlyArray<B>): (
|
|
5646
|
+
<A extends object, N extends string, B>(tag: Exclude<N, keyof A>, f: (a: NoInfer<A>) => ReadonlyArray<B>): (
|
|
5647
5647
|
self: ReadonlyArray<A>
|
|
5648
5648
|
) => Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
5649
5649
|
/**
|
|
@@ -5692,7 +5692,7 @@ export const bind: {
|
|
|
5692
5692
|
<A extends object, N extends string, B>(
|
|
5693
5693
|
self: ReadonlyArray<A>,
|
|
5694
5694
|
tag: Exclude<N, keyof A>,
|
|
5695
|
-
f: (a: A) => ReadonlyArray<B>
|
|
5695
|
+
f: (a: NoInfer<A>) => ReadonlyArray<B>
|
|
5696
5696
|
): Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
5697
5697
|
} = doNotation.bind<ReadonlyArrayTypeLambda>(map, flatMap) as any
|
|
5698
5698
|
|
|
@@ -5833,12 +5833,12 @@ export const bindTo: {
|
|
|
5833
5833
|
const let_: {
|
|
5834
5834
|
<N extends string, B, A extends object>(
|
|
5835
5835
|
tag: Exclude<N, keyof A>,
|
|
5836
|
-
f: (a: A) => B
|
|
5836
|
+
f: (a: NoInfer<A>) => B
|
|
5837
5837
|
): (self: ReadonlyArray<A>) => Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
5838
5838
|
<N extends string, A extends object, B>(
|
|
5839
5839
|
self: ReadonlyArray<A>,
|
|
5840
5840
|
tag: Exclude<N, keyof A>,
|
|
5841
|
-
f: (a: A) => B
|
|
5841
|
+
f: (a: NoInfer<A>) => B
|
|
5842
5842
|
): Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
5843
5843
|
} = doNotation.let_<ReadonlyArrayTypeLambda>(map) as any
|
|
5844
5844
|
|
package/src/BigDecimal.ts
CHANGED
|
@@ -18,7 +18,7 @@ import * as Equal from "./Equal.js"
|
|
|
18
18
|
import * as equivalence from "./Equivalence.js"
|
|
19
19
|
import { dual, pipe } from "./Function.js"
|
|
20
20
|
import * as Hash from "./Hash.js"
|
|
21
|
-
import {
|
|
21
|
+
import { type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
|
|
22
22
|
import * as Option from "./Option.js"
|
|
23
23
|
import * as order from "./Order.js"
|
|
24
24
|
import type { Ordering } from "./Ordering.js"
|
|
@@ -74,9 +74,6 @@ const BigDecimalProto: Omit<BigDecimal, "value" | "scale" | "normalized"> = {
|
|
|
74
74
|
scale: this.scale
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
[DenoInspectSymbol](this: BigDecimal) {
|
|
78
|
-
return this.toJSON()
|
|
79
|
-
},
|
|
80
77
|
[NodeInspectSymbol](this: BigDecimal) {
|
|
81
78
|
return this.toJSON()
|
|
82
79
|
},
|
package/src/Chunk.ts
CHANGED
|
@@ -9,7 +9,7 @@ import * as Equivalence from "./Equivalence.js"
|
|
|
9
9
|
import { dual, identity, pipe } from "./Function.js"
|
|
10
10
|
import * as Hash from "./Hash.js"
|
|
11
11
|
import type { TypeLambda } from "./HKT.js"
|
|
12
|
-
import {
|
|
12
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
13
13
|
import type { NonEmptyIterable } from "./NonEmptyIterable.js"
|
|
14
14
|
import type { Option } from "./Option.js"
|
|
15
15
|
import * as O from "./Option.js"
|
|
@@ -135,9 +135,6 @@ const ChunkProto: Omit<Chunk<unknown>, "backing" | "depth" | "left" | "length" |
|
|
|
135
135
|
values: toReadonlyArray(this).map(toJSON)
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
-
[DenoInspectSymbol]<A>(this: Chunk<A>) {
|
|
139
|
-
return this.toJSON()
|
|
140
|
-
},
|
|
141
138
|
[NodeInspectSymbol]<A>(this: Chunk<A>) {
|
|
142
139
|
return this.toJSON()
|
|
143
140
|
},
|
package/src/Cron.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Equal from "./Equal.js"
|
|
|
7
7
|
import * as equivalence from "./Equivalence.js"
|
|
8
8
|
import { dual, pipe } from "./Function.js"
|
|
9
9
|
import * as Hash from "./Hash.js"
|
|
10
|
-
import {
|
|
10
|
+
import { format, type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
|
|
11
11
|
import * as N from "./Number.js"
|
|
12
12
|
import { type Pipeable, pipeArguments } from "./Pipeable.js"
|
|
13
13
|
import { hasProperty } from "./Predicate.js"
|
|
@@ -67,9 +67,6 @@ const CronProto: Omit<Cron, "minutes" | "hours" | "days" | "months" | "weekdays"
|
|
|
67
67
|
weekdays: Arr.fromIterable(this.weekdays)
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
[DenoInspectSymbol](this: Cron) {
|
|
71
|
-
return this.toJSON()
|
|
72
|
-
},
|
|
73
70
|
[NodeInspectSymbol](this: Cron) {
|
|
74
71
|
return this.toJSON()
|
|
75
72
|
},
|
package/src/DateTime.ts
CHANGED
|
@@ -230,9 +230,6 @@ const Proto = {
|
|
|
230
230
|
pipe() {
|
|
231
231
|
return pipeArguments(this, arguments)
|
|
232
232
|
},
|
|
233
|
-
[Inspectable.DenoInspectSymbol](this: DateTime) {
|
|
234
|
-
return this.toString()
|
|
235
|
-
},
|
|
236
233
|
[Inspectable.NodeInspectSymbol](this: DateTime) {
|
|
237
234
|
return this.toString()
|
|
238
235
|
},
|
|
@@ -276,9 +273,6 @@ const ProtoZoned = {
|
|
|
276
273
|
|
|
277
274
|
const ProtoTimeZone = {
|
|
278
275
|
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
279
|
-
[Inspectable.DenoInspectSymbol](this: TimeZone) {
|
|
280
|
-
return this.toString()
|
|
281
|
-
},
|
|
282
276
|
[Inspectable.NodeInspectSymbol](this: TimeZone) {
|
|
283
277
|
return this.toString()
|
|
284
278
|
}
|
package/src/Duration.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type * as equivalence from "./Equivalence.js"
|
|
|
6
6
|
import { dual } from "./Function.js"
|
|
7
7
|
import * as Hash from "./Hash.js"
|
|
8
8
|
import type { Inspectable } from "./Inspectable.js"
|
|
9
|
-
import {
|
|
9
|
+
import { NodeInspectSymbol } from "./Inspectable.js"
|
|
10
10
|
import * as Option from "./Option.js"
|
|
11
11
|
import * as order from "./Order.js"
|
|
12
12
|
import type { Pipeable } from "./Pipeable.js"
|
|
@@ -160,9 +160,6 @@ const DurationProto: Omit<Duration, "value"> = {
|
|
|
160
160
|
return { _id: "Duration", _tag: "Infinity" }
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
[DenoInspectSymbol]() {
|
|
164
|
-
return this.toJSON()
|
|
165
|
-
},
|
|
166
163
|
[NodeInspectSymbol]() {
|
|
167
164
|
return this.toJSON()
|
|
168
165
|
},
|
package/src/Effect.ts
CHANGED
|
@@ -5307,7 +5307,7 @@ export const bind: {
|
|
|
5307
5307
|
*/
|
|
5308
5308
|
<N extends string, A extends object, B, E2, R2>(
|
|
5309
5309
|
name: Exclude<N, keyof A>,
|
|
5310
|
-
f: (a: A) => Effect<B, E2, R2>
|
|
5310
|
+
f: (a: NoInfer<A>) => Effect<B, E2, R2>
|
|
5311
5311
|
): <E1, R1>(self: Effect<A, E1, R1>) => Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E2 | E1, R2 | R1>
|
|
5312
5312
|
/**
|
|
5313
5313
|
* The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
|
|
@@ -5340,7 +5340,7 @@ export const bind: {
|
|
|
5340
5340
|
<A extends object, N extends string, E1, R1, B, E2, R2>(
|
|
5341
5341
|
self: Effect<A, E1, R1>,
|
|
5342
5342
|
name: Exclude<N, keyof A>,
|
|
5343
|
-
f: (a: A) => Effect<B, E2, R2>
|
|
5343
|
+
f: (a: NoInfer<A>) => Effect<B, E2, R2>
|
|
5344
5344
|
): Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E1 | E2, R1 | R2>
|
|
5345
5345
|
} = effect.bind
|
|
5346
5346
|
|
|
@@ -5397,7 +5397,7 @@ export const bindAll: {
|
|
|
5397
5397
|
readonly concurrentFinalizers?: boolean | undefined
|
|
5398
5398
|
}
|
|
5399
5399
|
>(
|
|
5400
|
-
f: (a: A) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
|
|
5400
|
+
f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
|
|
5401
5401
|
options?: undefined | O
|
|
5402
5402
|
): <E1, R1>(
|
|
5403
5403
|
self: Effect<A, E1, R1>
|
|
@@ -5442,7 +5442,7 @@ export const bindAll: {
|
|
|
5442
5442
|
R1
|
|
5443
5443
|
>(
|
|
5444
5444
|
self: Effect<A, E1, R1>,
|
|
5445
|
-
f: (a: A) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
|
|
5445
|
+
f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
|
|
5446
5446
|
options?: undefined | {
|
|
5447
5447
|
readonly concurrency?: Concurrency | undefined
|
|
5448
5448
|
readonly batching?: boolean | "inherit" | undefined
|
|
@@ -5550,12 +5550,12 @@ export const bindTo: {
|
|
|
5550
5550
|
const let_: {
|
|
5551
5551
|
<N extends string, A extends object, B>(
|
|
5552
5552
|
name: Exclude<N, keyof A>,
|
|
5553
|
-
f: (a: A) => B
|
|
5553
|
+
f: (a: NoInfer<A>) => B
|
|
5554
5554
|
): <E, R>(self: Effect<A, E, R>) => Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
|
|
5555
5555
|
<A extends object, N extends string, E, R, B>(
|
|
5556
5556
|
self: Effect<A, E, R>,
|
|
5557
5557
|
name: Exclude<N, keyof A>,
|
|
5558
|
-
f: (a: A) => B
|
|
5558
|
+
f: (a: NoInfer<A>) => B
|
|
5559
5559
|
): Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
|
|
5560
5560
|
} = effect.let_
|
|
5561
5561
|
|
package/src/Either.ts
CHANGED
|
@@ -1383,7 +1383,7 @@ export const bind: {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
<N extends string, A extends object, B, L2>(
|
|
1385
1385
|
name: Exclude<N, keyof A>,
|
|
1386
|
-
f: (a: A) => Either<B, L2>
|
|
1386
|
+
f: (a: NoInfer<A>) => Either<B, L2>
|
|
1387
1387
|
): <L1>(self: Either<A, L1>) => Either<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, L1 | L2>
|
|
1388
1388
|
/**
|
|
1389
1389
|
* The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
|
|
@@ -1416,7 +1416,7 @@ export const bind: {
|
|
|
1416
1416
|
<A extends object, L1, N extends string, B, L2>(
|
|
1417
1417
|
self: Either<A, L1>,
|
|
1418
1418
|
name: Exclude<N, keyof A>,
|
|
1419
|
-
f: (a: A) => Either<B, L2>
|
|
1419
|
+
f: (a: NoInfer<A>) => Either<B, L2>
|
|
1420
1420
|
): Either<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, L1 | L2>
|
|
1421
1421
|
} = doNotation.bind<EitherTypeLambda>(map, flatMap)
|
|
1422
1422
|
|
|
@@ -1512,12 +1512,12 @@ export const bindTo: {
|
|
|
1512
1512
|
const let_: {
|
|
1513
1513
|
<N extends string, R extends object, B>(
|
|
1514
1514
|
name: Exclude<N, keyof R>,
|
|
1515
|
-
f: (r: R) => B
|
|
1515
|
+
f: (r: NoInfer<R>) => B
|
|
1516
1516
|
): <L>(self: Either<R, L>) => Either<{ [K in N | keyof R]: K extends keyof R ? R[K] : B }, L>
|
|
1517
1517
|
<R extends object, L, N extends string, B>(
|
|
1518
1518
|
self: Either<R, L>,
|
|
1519
1519
|
name: Exclude<N, keyof R>,
|
|
1520
|
-
f: (r: R) => B
|
|
1520
|
+
f: (r: NoInfer<R>) => B
|
|
1521
1521
|
): Either<{ [K in N | keyof R]: K extends keyof R ? R[K] : B }, L>
|
|
1522
1522
|
} = doNotation.let_<EitherTypeLambda>(map)
|
|
1523
1523
|
|
package/src/FiberHandle.ts
CHANGED
package/src/FiberMap.ts
CHANGED
package/src/FiberSet.ts
CHANGED
package/src/Inspectable.ts
CHANGED
|
@@ -16,18 +16,6 @@ export const NodeInspectSymbol = Symbol.for("nodejs.util.inspect.custom")
|
|
|
16
16
|
*/
|
|
17
17
|
export type NodeInspectSymbol = typeof NodeInspectSymbol
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* @since 3.9.0
|
|
21
|
-
* @category symbols
|
|
22
|
-
*/
|
|
23
|
-
export const DenoInspectSymbol = Symbol.for("Deno.customInspect")
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @since 3.9.0
|
|
27
|
-
* @category symbols
|
|
28
|
-
*/
|
|
29
|
-
export type DenoInspectSymbol = typeof DenoInspectSymbol
|
|
30
|
-
|
|
31
19
|
/**
|
|
32
20
|
* @since 2.0.0
|
|
33
21
|
* @category models
|
|
@@ -36,7 +24,6 @@ export interface Inspectable {
|
|
|
36
24
|
toString(): string
|
|
37
25
|
toJSON(): unknown
|
|
38
26
|
[NodeInspectSymbol](): unknown
|
|
39
|
-
[DenoInspectSymbol](): unknown
|
|
40
27
|
}
|
|
41
28
|
|
|
42
29
|
/**
|
|
@@ -69,9 +56,6 @@ export const BaseProto: Inspectable = {
|
|
|
69
56
|
[NodeInspectSymbol]() {
|
|
70
57
|
return this.toJSON()
|
|
71
58
|
},
|
|
72
|
-
[DenoInspectSymbol]() {
|
|
73
|
-
return this.toJSON()
|
|
74
|
-
},
|
|
75
59
|
toString() {
|
|
76
60
|
return format(this.toJSON())
|
|
77
61
|
}
|
|
@@ -91,12 +75,6 @@ export abstract class Class {
|
|
|
91
75
|
[NodeInspectSymbol]() {
|
|
92
76
|
return this.toJSON()
|
|
93
77
|
}
|
|
94
|
-
/**
|
|
95
|
-
* @since 3.9.0
|
|
96
|
-
*/
|
|
97
|
-
[DenoInspectSymbol]() {
|
|
98
|
-
return this.toJSON()
|
|
99
|
-
}
|
|
100
78
|
/**
|
|
101
79
|
* @since 2.0.0
|
|
102
80
|
*/
|
package/src/List.ts
CHANGED
|
@@ -28,7 +28,7 @@ import * as Equal from "./Equal.js"
|
|
|
28
28
|
import * as Equivalence from "./Equivalence.js"
|
|
29
29
|
import { dual, identity, unsafeCoerce } from "./Function.js"
|
|
30
30
|
import * as Hash from "./Hash.js"
|
|
31
|
-
import {
|
|
31
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
32
32
|
import type { nonEmpty, NonEmptyIterable } from "./NonEmptyIterable.js"
|
|
33
33
|
import * as Option from "./Option.js"
|
|
34
34
|
import type { Pipeable } from "./Pipeable.js"
|
|
@@ -110,9 +110,6 @@ const ConsProto: Omit<Cons<unknown>, "head" | "tail" | typeof nonEmpty> = {
|
|
|
110
110
|
values: toArray(this).map(toJSON)
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
[DenoInspectSymbol]() {
|
|
114
|
-
return this.toJSON()
|
|
115
|
-
},
|
|
116
113
|
[NodeInspectSymbol]() {
|
|
117
114
|
return this.toJSON()
|
|
118
115
|
},
|
|
@@ -179,9 +176,6 @@ const NilProto: Nil<unknown> = {
|
|
|
179
176
|
_tag: "Nil"
|
|
180
177
|
}
|
|
181
178
|
},
|
|
182
|
-
[DenoInspectSymbol]() {
|
|
183
|
-
return this.toJSON()
|
|
184
|
-
},
|
|
185
179
|
[NodeInspectSymbol]() {
|
|
186
180
|
return this.toJSON()
|
|
187
181
|
},
|
package/src/Micro.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { constTrue, constVoid, dual, identity, type LazyArg } from "./Function.j
|
|
|
13
13
|
import { globalValue } from "./GlobalValue.js"
|
|
14
14
|
import type { TypeLambda } from "./HKT.js"
|
|
15
15
|
import type { Inspectable } from "./Inspectable.js"
|
|
16
|
-
import {
|
|
16
|
+
import { NodeInspectSymbol, toStringUnknown } from "./Inspectable.js"
|
|
17
17
|
import * as doNotation from "./internal/doNotation.js"
|
|
18
18
|
import { StructuralPrototype } from "./internal/effectable.js"
|
|
19
19
|
import { SingleShotGen } from "./internal/singleShotGen.js"
|
|
@@ -323,9 +323,6 @@ abstract class MicroCauseImpl<Tag extends string, E> extends globalThis.Error im
|
|
|
323
323
|
toString() {
|
|
324
324
|
return this.stack
|
|
325
325
|
}
|
|
326
|
-
[DenoInspectSymbol]() {
|
|
327
|
-
return this.stack
|
|
328
|
-
}
|
|
329
326
|
[NodeInspectSymbol]() {
|
|
330
327
|
return this.stack
|
|
331
328
|
}
|
|
@@ -4794,7 +4791,7 @@ export const bind: {
|
|
|
4794
4791
|
*/
|
|
4795
4792
|
<N extends string, A extends Record<string, any>, B, E2, R2>(
|
|
4796
4793
|
name: N,
|
|
4797
|
-
f: (a: A) => Micro<B, E2, R2>
|
|
4794
|
+
f: (a: NoInfer<A>) => Micro<B, E2, R2>
|
|
4798
4795
|
): <E, R>(self: Micro<A, E, R>) => Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E | E2, R | R2>
|
|
4799
4796
|
/**
|
|
4800
4797
|
* Bind the success value of this `Micro` effect to the provided name.
|
|
@@ -4806,19 +4803,19 @@ export const bind: {
|
|
|
4806
4803
|
<A extends Record<string, any>, E, R, B, E2, R2, N extends string>(
|
|
4807
4804
|
self: Micro<A, E, R>,
|
|
4808
4805
|
name: N,
|
|
4809
|
-
f: (a: A) => Micro<B, E2, R2>
|
|
4806
|
+
f: (a: NoInfer<A>) => Micro<B, E2, R2>
|
|
4810
4807
|
): Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E | E2, R | R2>
|
|
4811
4808
|
} = doNotation.bind<MicroTypeLambda>(map, flatMap)
|
|
4812
4809
|
|
|
4813
4810
|
const let_: {
|
|
4814
4811
|
<N extends string, A extends Record<string, any>, B>(
|
|
4815
4812
|
name: N,
|
|
4816
|
-
f: (a: A) => B
|
|
4813
|
+
f: (a: NoInfer<A>) => B
|
|
4817
4814
|
): <E, R>(self: Micro<A, E, R>) => Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E, R>
|
|
4818
4815
|
<A extends Record<string, any>, E, R, B, N extends string>(
|
|
4819
4816
|
self: Micro<A, E, R>,
|
|
4820
4817
|
name: N,
|
|
4821
|
-
f: (a: A) => B
|
|
4818
|
+
f: (a: NoInfer<A>) => B
|
|
4822
4819
|
): Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E, R>
|
|
4823
4820
|
} = doNotation.let_<MicroTypeLambda>(map)
|
|
4824
4821
|
|
|
@@ -5256,9 +5253,6 @@ const YieldableError: new(message?: string) => YieldableError = (function() {
|
|
|
5256
5253
|
toJSON() {
|
|
5257
5254
|
return { ...this }
|
|
5258
5255
|
}
|
|
5259
|
-
[DenoInspectSymbol](): string {
|
|
5260
|
-
return this[NodeInspectSymbol]()
|
|
5261
|
-
}
|
|
5262
5256
|
[NodeInspectSymbol](): string {
|
|
5263
5257
|
const stack = this.stack
|
|
5264
5258
|
if (stack) {
|
package/src/MutableHashMap.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { NonEmptyArray } from "./Array.js"
|
|
|
5
5
|
import * as Equal from "./Equal.js"
|
|
6
6
|
import { dual } from "./Function.js"
|
|
7
7
|
import * as Hash from "./Hash.js"
|
|
8
|
-
import {
|
|
8
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
9
9
|
import * as Option from "./Option.js"
|
|
10
10
|
import type { Pipeable } from "./Pipeable.js"
|
|
11
11
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -46,9 +46,6 @@ const MutableHashMapProto: Omit<MutableHashMap<unknown, unknown>, "referential"
|
|
|
46
46
|
values: Array.from(this).map(toJSON)
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
[DenoInspectSymbol]() {
|
|
50
|
-
return this.toJSON()
|
|
51
|
-
},
|
|
52
49
|
[NodeInspectSymbol]() {
|
|
53
50
|
return this.toJSON()
|
|
54
51
|
},
|
package/src/MutableHashSet.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 2.0.0
|
|
3
3
|
*/
|
|
4
4
|
import * as Dual from "./Function.js"
|
|
5
|
-
import {
|
|
5
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
6
6
|
import * as MutableHashMap from "./MutableHashMap.js"
|
|
7
7
|
import type { Pipeable } from "./Pipeable.js"
|
|
8
8
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -40,9 +40,6 @@ const MutableHashSetProto: Omit<MutableHashSet<unknown>, "keyMap"> = {
|
|
|
40
40
|
values: Array.from(this).map(toJSON)
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
[DenoInspectSymbol]() {
|
|
44
|
-
return this.toJSON()
|
|
45
|
-
},
|
|
46
43
|
[NodeInspectSymbol]() {
|
|
47
44
|
return this.toJSON()
|
|
48
45
|
},
|
package/src/MutableList.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 2.0.0
|
|
3
3
|
*/
|
|
4
4
|
import * as Dual from "./Function.js"
|
|
5
|
-
import {
|
|
5
|
+
import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
6
6
|
import type { Inspectable } from "./Inspectable.js"
|
|
7
7
|
import type { Pipeable } from "./Pipeable.js"
|
|
8
8
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -63,9 +63,6 @@ const MutableListProto: Omit<MutableList<unknown>, "head" | "tail"> = {
|
|
|
63
63
|
values: Array.from(this).map(toJSON)
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
[DenoInspectSymbol]() {
|
|
67
|
-
return this.toJSON()
|
|
68
|
-
},
|
|
69
66
|
[NodeInspectSymbol]() {
|
|
70
67
|
return this.toJSON()
|
|
71
68
|
},
|
package/src/MutableQueue.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chunk from "./Chunk.js"
|
|
5
5
|
import * as Dual from "./Function.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
7
7
|
import * as MutableList from "./MutableList.js"
|
|
8
8
|
import type { Pipeable } from "./Pipeable.js"
|
|
9
9
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -59,9 +59,6 @@ const MutableQueueProto: Omit<MutableQueue<unknown>, "queue" | "capacity"> = {
|
|
|
59
59
|
values: Array.from(this).map(toJSON)
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
[DenoInspectSymbol]() {
|
|
63
|
-
return this.toJSON()
|
|
64
|
-
},
|
|
65
62
|
[NodeInspectSymbol]() {
|
|
66
63
|
return this.toJSON()
|
|
67
64
|
},
|
package/src/MutableRef.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Equal from "./Equal.js"
|
|
5
5
|
import * as Dual from "./Function.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
7
7
|
import type { Pipeable } from "./Pipeable.js"
|
|
8
8
|
import { pipeArguments } from "./Pipeable.js"
|
|
9
9
|
|
|
@@ -37,9 +37,6 @@ const MutableRefProto: Omit<MutableRef<unknown>, "current"> = {
|
|
|
37
37
|
current: toJSON(this.current)
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
[DenoInspectSymbol]() {
|
|
41
|
-
return this.toJSON()
|
|
42
|
-
},
|
|
43
40
|
[NodeInspectSymbol]() {
|
|
44
41
|
return this.toJSON()
|
|
45
42
|
},
|
package/src/Option.ts
CHANGED
|
@@ -2199,12 +2199,12 @@ export const bindTo: {
|
|
|
2199
2199
|
const let_: {
|
|
2200
2200
|
<N extends string, A extends object, B>(
|
|
2201
2201
|
name: Exclude<N, keyof A>,
|
|
2202
|
-
f: (a: A) => B
|
|
2202
|
+
f: (a: NoInfer<A>) => B
|
|
2203
2203
|
): (self: Option<A>) => Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
2204
2204
|
<A extends object, N extends string, B>(
|
|
2205
2205
|
self: Option<A>,
|
|
2206
2206
|
name: Exclude<N, keyof A>,
|
|
2207
|
-
f: (a: A) => B
|
|
2207
|
+
f: (a: NoInfer<A>) => B
|
|
2208
2208
|
): Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
2209
2209
|
} = doNotation.let_<OptionTypeLambda>(map)
|
|
2210
2210
|
|
|
@@ -2305,7 +2305,7 @@ export const bind: {
|
|
|
2305
2305
|
*/
|
|
2306
2306
|
<N extends string, A extends object, B>(
|
|
2307
2307
|
name: Exclude<N, keyof A>,
|
|
2308
|
-
f: (a: A) => Option<B>
|
|
2308
|
+
f: (a: NoInfer<A>) => Option<B>
|
|
2309
2309
|
): (self: Option<A>) => Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
2310
2310
|
/**
|
|
2311
2311
|
* The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
|
|
@@ -2340,7 +2340,7 @@ export const bind: {
|
|
|
2340
2340
|
<A extends object, N extends string, B>(
|
|
2341
2341
|
self: Option<A>,
|
|
2342
2342
|
name: Exclude<N, keyof A>,
|
|
2343
|
-
f: (a: A) => Option<B>
|
|
2343
|
+
f: (a: NoInfer<A>) => Option<B>
|
|
2344
2344
|
): Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
|
|
2345
2345
|
} = doNotation.bind<OptionTypeLambda>(map, flatMap)
|
|
2346
2346
|
|
package/src/STM.ts
CHANGED
|
@@ -3094,7 +3094,7 @@ export const bind: {
|
|
|
3094
3094
|
*/
|
|
3095
3095
|
<N extends string, K, A, E2, R2>(
|
|
3096
3096
|
tag: Exclude<N, keyof K>,
|
|
3097
|
-
f: (_: K) => STM<A, E2, R2>
|
|
3097
|
+
f: (_: NoInfer<K>) => STM<A, E2, R2>
|
|
3098
3098
|
): <E, R>(self: STM<K, E, R>) => STM<MergeRecord<K, { [k in N]: A }>, E2 | E, R2 | R>
|
|
3099
3099
|
/**
|
|
3100
3100
|
* @category do notation
|
|
@@ -3103,19 +3103,19 @@ export const bind: {
|
|
|
3103
3103
|
<K, E, R, N extends string, A, E2, R2>(
|
|
3104
3104
|
self: STM<K, E, R>,
|
|
3105
3105
|
tag: Exclude<N, keyof K>,
|
|
3106
|
-
f: (_: K) => STM<A, E2, R2>
|
|
3106
|
+
f: (_: NoInfer<K>) => STM<A, E2, R2>
|
|
3107
3107
|
): STM<MergeRecord<K, { [k in N]: A }>, E | E2, R | R2>
|
|
3108
3108
|
} = stm.bind
|
|
3109
3109
|
|
|
3110
3110
|
const let_: {
|
|
3111
3111
|
<N extends string, K, A>(
|
|
3112
3112
|
tag: Exclude<N, keyof K>,
|
|
3113
|
-
f: (_: K) => A
|
|
3113
|
+
f: (_: NoInfer<K>) => A
|
|
3114
3114
|
): <E, R>(self: STM<K, E, R>) => STM<MergeRecord<K, { [k in N]: A }>, E, R>
|
|
3115
3115
|
<K, E, R, N extends string, A>(
|
|
3116
3116
|
self: STM<K, E, R>,
|
|
3117
3117
|
tag: Exclude<N, keyof K>,
|
|
3118
|
-
f: (_: K) => A
|
|
3118
|
+
f: (_: NoInfer<K>) => A
|
|
3119
3119
|
): STM<MergeRecord<K, { [k in N]: A }>, E, R>
|
|
3120
3120
|
} = stm.let_
|
|
3121
3121
|
|
package/src/SortedMap.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as Equal from "./Equal.js"
|
|
|
5
5
|
import * as Dual from "./Function.js"
|
|
6
6
|
import { pipe } from "./Function.js"
|
|
7
7
|
import * as Hash from "./Hash.js"
|
|
8
|
-
import {
|
|
8
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
9
9
|
import * as Option from "./Option.js"
|
|
10
10
|
import type { Order } from "./Order.js"
|
|
11
11
|
import type { Pipeable } from "./Pipeable.js"
|
|
@@ -62,9 +62,6 @@ const SortedMapProto: Omit<SortedMap<unknown, unknown>, "tree"> = {
|
|
|
62
62
|
values: Array.from(this).map(toJSON)
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
[DenoInspectSymbol]() {
|
|
66
|
-
return this.toJSON()
|
|
67
|
-
},
|
|
68
65
|
[NodeInspectSymbol]() {
|
|
69
66
|
return this.toJSON()
|
|
70
67
|
},
|
package/src/SortedSet.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Dual from "./Function.js"
|
|
|
7
7
|
import { pipe } from "./Function.js"
|
|
8
8
|
import * as Hash from "./Hash.js"
|
|
9
9
|
import type { Inspectable } from "./Inspectable.js"
|
|
10
|
-
import {
|
|
10
|
+
import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
11
11
|
import type { Order } from "./Order.js"
|
|
12
12
|
import type { Pipeable } from "./Pipeable.js"
|
|
13
13
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -62,9 +62,6 @@ const SortedSetProto: Omit<SortedSet<unknown>, "keyTree"> = {
|
|
|
62
62
|
values: Array.from(this).map(toJSON)
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
[DenoInspectSymbol]() {
|
|
66
|
-
return this.toJSON()
|
|
67
|
-
},
|
|
68
65
|
[NodeInspectSymbol]() {
|
|
69
66
|
return this.toJSON()
|
|
70
67
|
},
|
package/src/Stream.ts
CHANGED
|
@@ -10819,7 +10819,7 @@ export const bind: {
|
|
|
10819
10819
|
*/
|
|
10820
10820
|
<N extends string, A, B, E2, R2>(
|
|
10821
10821
|
tag: Exclude<N, keyof A>,
|
|
10822
|
-
f: (_: A) => Stream<B, E2, R2>,
|
|
10822
|
+
f: (_: NoInfer<A>) => Stream<B, E2, R2>,
|
|
10823
10823
|
options?:
|
|
10824
10824
|
| { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
|
|
10825
10825
|
| undefined
|
|
@@ -10856,7 +10856,7 @@ export const bind: {
|
|
|
10856
10856
|
<A, E, R, N extends string, B, E2, R2>(
|
|
10857
10857
|
self: Stream<A, E, R>,
|
|
10858
10858
|
tag: Exclude<N, keyof A>,
|
|
10859
|
-
f: (_: A) => Stream<B, E2, R2>,
|
|
10859
|
+
f: (_: NoInfer<A>) => Stream<B, E2, R2>,
|
|
10860
10860
|
options?:
|
|
10861
10861
|
| { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
|
|
10862
10862
|
| undefined
|
|
@@ -10888,11 +10888,9 @@ export const bindEffect: {
|
|
|
10888
10888
|
*/
|
|
10889
10889
|
<N extends string, A, B, E2, R2>(
|
|
10890
10890
|
tag: Exclude<N, keyof A>,
|
|
10891
|
-
f: (_: A) => Effect.Effect<B, E2, R2>,
|
|
10892
|
-
options?:
|
|
10893
|
-
|
|
10894
|
-
| undefined
|
|
10895
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E2 | E, R2 | R>
|
|
10891
|
+
f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>,
|
|
10892
|
+
options?: { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
|
|
10893
|
+
): <E, R>(self: Stream<A, E, R>) => Stream<{ [K in keyof A | N]: K extends keyof A ? A[K] : B }, E | E2, R | R2>
|
|
10896
10894
|
/**
|
|
10897
10895
|
* Binds an effectful value in a `do` scope
|
|
10898
10896
|
*
|
|
@@ -10907,11 +10905,9 @@ export const bindEffect: {
|
|
|
10907
10905
|
<A, E, R, N extends string, B, E2, R2>(
|
|
10908
10906
|
self: Stream<A, E, R>,
|
|
10909
10907
|
tag: Exclude<N, keyof A>,
|
|
10910
|
-
f: (_: A) => Effect.Effect<B, E2, R2>,
|
|
10911
|
-
options?:
|
|
10912
|
-
|
|
10913
|
-
| undefined
|
|
10914
|
-
): Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E | E2, R | R2>
|
|
10908
|
+
f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>,
|
|
10909
|
+
options?: { readonly concurrency?: number | "unbounded" | undefined; readonly unordered?: boolean | undefined }
|
|
10910
|
+
): Stream<{ [K in keyof A | N]: K extends keyof A ? A[K] : B }, E | E2, R | R2>
|
|
10915
10911
|
} = _groupBy.bindEffect
|
|
10916
10912
|
|
|
10917
10913
|
/**
|
|
@@ -11009,12 +11005,12 @@ export const bindTo: {
|
|
|
11009
11005
|
const let_: {
|
|
11010
11006
|
<N extends string, A extends object, B>(
|
|
11011
11007
|
name: Exclude<N, keyof A>,
|
|
11012
|
-
f: (a: A) => B
|
|
11008
|
+
f: (a: NoInfer<A>) => B
|
|
11013
11009
|
): <E, R>(self: Stream<A, E, R>) => Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
|
|
11014
11010
|
<A extends object, E, R, N extends string, B>(
|
|
11015
11011
|
self: Stream<A, E, R>,
|
|
11016
11012
|
name: Exclude<N, keyof A>,
|
|
11017
|
-
f: (a: A) => B
|
|
11013
|
+
f: (a: NoInfer<A>) => B
|
|
11018
11014
|
): Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
|
|
11019
11015
|
} = internal.let_
|
|
11020
11016
|
|