@effect-app/infra 1.27.1 → 1.27.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/CHANGELOG.md
CHANGED
|
@@ -30,7 +30,7 @@ export type GetEffectError<CTXMap extends Record<string, ContextMap.Any>, T> = V
|
|
|
30
30
|
}>;
|
|
31
31
|
type GetFailure1<F1> = F1 extends S.Schema.Any ? F1 : typeof S.Never;
|
|
32
32
|
type GetFailure<F1, F2> = F1 extends S.Schema.Any ? F2 extends S.Schema.Any ? S.Union<[F1, F2]> : F1 : F2;
|
|
33
|
-
export declare const makeRpcClient: <RequestConfig extends object, CTXMap extends Record<string, ContextMap.Any>, GeneralErrors extends S.Schema.
|
|
33
|
+
export declare const makeRpcClient: <RequestConfig extends object, CTXMap extends Record<string, ContextMap.Any>, GeneralErrors extends S.Schema.All>(errors: { [K in keyof CTXMap]: CTXMap[K][2]; }, generalErrors?: GeneralErrors) => {
|
|
34
34
|
TaggedRequest: <Self>() => {
|
|
35
35
|
<Tag extends string, Payload extends S.Struct.Fields, C extends {
|
|
36
36
|
success: S.Schema.Any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"proper-lockfile": "^4.1.2",
|
|
21
21
|
"pure-rand": "6.1.0",
|
|
22
22
|
"redlock": "^4.2.0",
|
|
23
|
-
"effect-app": "1.19.1",
|
|
24
23
|
"@effect-app/core": "1.11.0",
|
|
25
|
-
"
|
|
26
|
-
"@effect-app/infra-adapters": "1.13.1"
|
|
24
|
+
"effect-app": "1.19.1",
|
|
25
|
+
"@effect-app/infra-adapters": "1.13.1",
|
|
26
|
+
"@effect-app/schema": "1.13.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/cli": "^7.25.7",
|
|
@@ -78,7 +78,7 @@ const merge = (a: any, b: Array<any>) =>
|
|
|
78
78
|
export const makeRpcClient = <
|
|
79
79
|
RequestConfig extends object,
|
|
80
80
|
CTXMap extends Record<string, ContextMap.Any>,
|
|
81
|
-
GeneralErrors extends S.Schema.
|
|
81
|
+
GeneralErrors extends S.Schema.All
|
|
82
82
|
>(
|
|
83
83
|
errors: { [K in keyof CTXMap]: CTXMap[K][2] },
|
|
84
84
|
generalErrors?: GeneralErrors
|