@effect-app/infra 2.21.4 → 2.22.0
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 +12 -0
- package/_cjs/api/routing6.cjs.map +1 -1
- package/_cjs/api/routing7.cjs +216 -0
- package/_cjs/api/routing7.cjs.map +1 -0
- package/dist/api/routing6.d.ts +10 -4
- package/dist/api/routing6.d.ts.map +1 -1
- package/dist/api/routing6.js +1 -1
- package/dist/api/routing7.d.ts +244 -0
- package/dist/api/routing7.d.ts.map +1 -0
- package/dist/api/routing7.js +234 -0
- package/package.json +11 -1
- package/src/api/routing6.ts +28 -22
- package/src/api/routing7.ts +875 -0
- package/test/controller7.test.ts +216 -0
- package/test/dist/controller6.test.d.ts.map +1 -1
- package/test/dist/controller7.test.d.ts.map +1 -0
package/src/api/routing6.ts
CHANGED
|
@@ -196,18 +196,21 @@ export interface VoidMethod<
|
|
|
196
196
|
): HandleVoid<
|
|
197
197
|
GetSuccessShape<Rsc[K], RT>,
|
|
198
198
|
A,
|
|
199
|
-
keyof { [k in keyof Rsc as k extends K | keyof Accum ? never : k]: Rsc[k] } extends never ?
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
keyof { [k in keyof Rsc as k extends K | keyof Accum ? never : k]: Rsc[k] } extends never ? {
|
|
200
|
+
/** @deprecated these are the finalized routes, nothing to see here */
|
|
201
|
+
ಠ_ಠ:
|
|
202
|
+
& {
|
|
203
|
+
[k in K]: Handler<
|
|
204
|
+
Rsc[K],
|
|
205
|
+
RT,
|
|
206
|
+
Exclude<
|
|
207
|
+
Context | Exclude<R2, GetEffectContext<CTXMap, Rsc[K]["config"]>>,
|
|
208
|
+
HttpRouter.HttpRouter.Provided
|
|
209
|
+
>
|
|
207
210
|
>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
}
|
|
212
|
+
& Accum
|
|
213
|
+
}
|
|
211
214
|
: RRouter<
|
|
212
215
|
{ [k in keyof Rsc as k extends K | keyof Accum ? never : k]: Rsc[k] },
|
|
213
216
|
CTXMap,
|
|
@@ -230,18 +233,21 @@ export interface VoidMethod<
|
|
|
230
233
|
): HandleVoid<
|
|
231
234
|
GetSuccessShape<Rsc[K], RT>,
|
|
232
235
|
A,
|
|
233
|
-
keyof { [k in keyof Rsc as k extends K | keyof Accum ? never : k]: Rsc[k] } extends never ?
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
236
|
+
keyof { [k in keyof Rsc as k extends K | keyof Accum ? never : k]: Rsc[k] } extends never ? {
|
|
237
|
+
/** @deprecated these are the finalized routes, nothing to see here */
|
|
238
|
+
ಠ_ಠ:
|
|
239
|
+
& {
|
|
240
|
+
[k in K]: Handler<
|
|
241
|
+
Rsc[K],
|
|
242
|
+
RT,
|
|
243
|
+
Exclude<
|
|
244
|
+
Context | Exclude<R2, GetEffectContext<CTXMap, Rsc[K]["config"]>>,
|
|
245
|
+
HttpRouter.HttpRouter.Provided
|
|
246
|
+
>
|
|
241
247
|
>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
248
|
+
}
|
|
249
|
+
& Accum
|
|
250
|
+
}
|
|
245
251
|
: RRouter<
|
|
246
252
|
{ [k in keyof Rsc as k extends K | keyof Accum ? never : k]: Rsc[k] },
|
|
247
253
|
CTXMap,
|