@effect-app/vue 4.0.0-beta.8 → 4.0.0-beta.82

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +535 -0
  2. package/dist/{experimental/commander.d.ts → commander.d.ts} +53 -53
  3. package/dist/commander.d.ts.map +1 -0
  4. package/dist/commander.js +556 -0
  5. package/dist/{experimental/confirm.d.ts → confirm.d.ts} +2 -2
  6. package/dist/confirm.d.ts.map +1 -0
  7. package/dist/confirm.js +28 -0
  8. package/dist/form.d.ts +9 -0
  9. package/dist/form.d.ts.map +1 -1
  10. package/dist/form.js +38 -9
  11. package/dist/intl.d.ts +15 -0
  12. package/dist/intl.d.ts.map +1 -0
  13. package/dist/intl.js +9 -0
  14. package/dist/makeClient.d.ts +18 -241
  15. package/dist/makeClient.d.ts.map +1 -1
  16. package/dist/makeClient.js +12 -335
  17. package/dist/{experimental/makeUseCommand.d.ts → makeUseCommand.d.ts} +1 -1
  18. package/dist/makeUseCommand.d.ts.map +1 -0
  19. package/dist/makeUseCommand.js +13 -0
  20. package/dist/mutate.d.ts +1 -1
  21. package/dist/mutate.d.ts.map +1 -1
  22. package/dist/mutate.js +2 -2
  23. package/dist/query.d.ts +10 -14
  24. package/dist/query.d.ts.map +1 -1
  25. package/dist/query.js +23 -23
  26. package/dist/runtime.d.ts +3 -0
  27. package/dist/runtime.d.ts.map +1 -1
  28. package/dist/runtime.js +15 -3
  29. package/dist/{experimental/toast.d.ts → toast.d.ts} +9 -10
  30. package/dist/toast.d.ts.map +1 -0
  31. package/dist/toast.js +32 -0
  32. package/dist/{experimental/withToast.d.ts → withToast.d.ts} +3 -3
  33. package/dist/withToast.d.ts.map +1 -0
  34. package/dist/withToast.js +45 -0
  35. package/package.json +43 -43
  36. package/src/{experimental/commander.ts → commander.ts} +826 -202
  37. package/src/{experimental/confirm.ts → confirm.ts} +2 -2
  38. package/src/form.ts +46 -8
  39. package/src/intl.ts +12 -0
  40. package/src/makeClient.ts +27 -924
  41. package/src/{experimental/makeUseCommand.ts → makeUseCommand.ts} +1 -1
  42. package/src/mutate.ts +1 -1
  43. package/src/query.ts +44 -45
  44. package/src/runtime.ts +25 -2
  45. package/src/{experimental/toast.ts → toast.ts} +11 -25
  46. package/src/{experimental/withToast.ts → withToast.ts} +3 -3
  47. package/test/Mutation.test.ts +77 -7
  48. package/test/dist/form.test.d.ts.map +1 -1
  49. package/test/dist/stubs.d.ts +273 -67
  50. package/test/dist/stubs.d.ts.map +1 -1
  51. package/test/dist/stubs.js +34 -15
  52. package/test/form-validation-errors.test.ts +23 -19
  53. package/test/form.test.ts +20 -2
  54. package/test/makeClient.test.ts +38 -23
  55. package/test/stubs.ts +45 -18
  56. package/tsconfig.json +0 -1
  57. package/dist/experimental/commander.d.ts.map +0 -1
  58. package/dist/experimental/commander.js +0 -558
  59. package/dist/experimental/confirm.d.ts.map +0 -1
  60. package/dist/experimental/confirm.js +0 -28
  61. package/dist/experimental/intl.d.ts +0 -16
  62. package/dist/experimental/intl.d.ts.map +0 -1
  63. package/dist/experimental/intl.js +0 -5
  64. package/dist/experimental/makeUseCommand.d.ts.map +0 -1
  65. package/dist/experimental/makeUseCommand.js +0 -13
  66. package/dist/experimental/toast.d.ts.map +0 -1
  67. package/dist/experimental/toast.js +0 -41
  68. package/dist/experimental/withToast.d.ts.map +0 -1
  69. package/dist/experimental/withToast.js +0 -45
  70. package/src/experimental/intl.ts +0 -9
@@ -1,12 +1,11 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import { asResult, type MissingDependencies, reportRuntimeError } from "@effect-app/vue"
3
3
  import { reportMessage } from "@effect-app/vue/errorReporter"
4
- import { type AsyncResult } from "effect/unstable/reactivity/AsyncResult"
5
- import { Cause, Effect, type Exit, type Fiber, flow, Layer, Match, MutableHashMap, Option, Predicate, S, ServiceMap } from "effect-app"
4
+ import { Cause, Context, Effect, type Exit, type Fiber, flow, Layer, Match, MutableHashMap, Option, Predicate, S } from "effect-app"
6
5
  import { SupportedErrors } from "effect-app/client"
7
6
  import { OperationFailure, OperationSuccess } from "effect-app/Operations"
8
- import { wrapEffect } from "effect-app/utils"
9
- import { isGeneratorFunction } from "effect/Utils"
7
+ import { isGeneratorFunction, wrapEffect } from "effect-app/utils"
8
+ import { type AsyncResult } from "effect/unstable/reactivity/AsyncResult"
10
9
  import { type FormatXMLElementFn, type PrimitiveType } from "intl-messageformat"
11
10
  import { computed, type ComputedRef, reactive, ref } from "vue"
12
11
  import { Confirm } from "./confirm.js"
@@ -67,7 +66,7 @@ export const DefaultIntl = {
67
66
  }
68
67
  }
69
68
 
70
- export class CommandContext extends ServiceMap.Service<CommandContext, {
69
+ export class CommandContext extends Context.Service<CommandContext, {
71
70
  id: string
72
71
  i18nKey: string
73
72
  action: string
@@ -97,7 +96,7 @@ export declare namespace Commander {
97
96
  & NonGen<RT, Id, I18nKey, State>
98
97
  & CommandContextLocal<Id, I18nKey>
99
98
  & {
100
- state: ServiceMap.Service<`Commander.Command.${Id}.state`, State>
99
+ state: Context.Service<`Commander.Command.${Id}.state`, State>
101
100
  }
102
101
 
103
102
  export type CommanderFn<RT, Id extends string, I18nKey extends string, State extends IntlRecord | undefined> =
@@ -117,7 +116,7 @@ export declare namespace Commander {
117
116
  & GenWrap<RT, Id, I18nCustomKey, I, A, E, R, State>
118
117
  & NonGenWrap<RT, Id, I18nCustomKey, I, A, E, R, State>
119
118
  & {
120
- state: ServiceMap.Service<`Commander.Command.${Id}.state`, State>
119
+ state: Context.Service<`Commander.Command.${Id}.state`, State>
121
120
  }
122
121
 
123
122
  export interface CommandContextLocal<Id extends string, I18nKey extends string> {
@@ -189,6 +188,8 @@ export declare namespace Commander {
189
188
  state: State
190
189
  }
191
190
 
191
+ type ArgForCombinator<Arg> = [Arg] extends [void] ? undefined : NoInfer<Arg>
192
+
192
193
  type CommandOutHelper<
193
194
  Arg,
194
195
  Eff extends Effect.Effect<any, any, any>,
@@ -242,7 +243,7 @@ export declare namespace Commander {
242
243
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
243
244
  : never
244
245
  >,
245
- arg: NoInfer<Arg>,
246
+ arg: ArgForCombinator<Arg>,
246
247
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
247
248
  ) => A
248
249
  ): CommandOutHelper<Arg, A, Id, I18nKey, State>
@@ -264,10 +265,14 @@ export declare namespace Commander {
264
265
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
265
266
  : never
266
267
  >,
267
- arg: NoInfer<Arg>,
268
+ arg: ArgForCombinator<Arg>,
268
269
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
269
270
  ) => A,
270
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B
271
+ b: (
272
+ _: A,
273
+ arg: ArgForCombinator<Arg>,
274
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
275
+ ) => B
271
276
  ): CommandOutHelper<Arg, B, Id, I18nKey, State>
272
277
  <
273
278
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -288,11 +293,19 @@ export declare namespace Commander {
288
293
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
289
294
  : never
290
295
  >,
291
- arg: NoInfer<Arg>,
296
+ arg: ArgForCombinator<Arg>,
292
297
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
293
298
  ) => A,
294
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
295
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C
299
+ b: (
300
+ _: A,
301
+ arg: ArgForCombinator<Arg>,
302
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
303
+ ) => B,
304
+ c: (
305
+ _: B,
306
+ arg: ArgForCombinator<Arg>,
307
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
308
+ ) => C
296
309
  ): CommandOutHelper<Arg, C, Id, I18nKey, State>
297
310
  <
298
311
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -314,12 +327,24 @@ export declare namespace Commander {
314
327
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
315
328
  : never
316
329
  >,
317
- arg: NoInfer<Arg>,
330
+ arg: ArgForCombinator<Arg>,
318
331
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
319
332
  ) => A,
320
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
321
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
322
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D
333
+ b: (
334
+ _: A,
335
+ arg: ArgForCombinator<Arg>,
336
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
337
+ ) => B,
338
+ c: (
339
+ _: B,
340
+ arg: ArgForCombinator<Arg>,
341
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
342
+ ) => C,
343
+ d: (
344
+ _: C,
345
+ arg: ArgForCombinator<Arg>,
346
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
347
+ ) => D
323
348
  ): CommandOutHelper<Arg, D, Id, I18nKey, State>
324
349
  <
325
350
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -342,13 +367,29 @@ export declare namespace Commander {
342
367
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
343
368
  : never
344
369
  >,
345
- arg: NoInfer<Arg>,
370
+ arg: ArgForCombinator<Arg>,
346
371
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
347
372
  ) => A,
348
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
349
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
350
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
351
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E
373
+ b: (
374
+ _: A,
375
+ arg: ArgForCombinator<Arg>,
376
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
377
+ ) => B,
378
+ c: (
379
+ _: B,
380
+ arg: ArgForCombinator<Arg>,
381
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
382
+ ) => C,
383
+ d: (
384
+ _: C,
385
+ arg: ArgForCombinator<Arg>,
386
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
387
+ ) => D,
388
+ e: (
389
+ _: D,
390
+ arg: ArgForCombinator<Arg>,
391
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
392
+ ) => E
352
393
  ): CommandOutHelper<Arg, E, Id, I18nKey, State>
353
394
  <
354
395
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -372,14 +413,34 @@ export declare namespace Commander {
372
413
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
373
414
  : never
374
415
  >,
375
- arg: NoInfer<Arg>,
416
+ arg: ArgForCombinator<Arg>,
376
417
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
377
418
  ) => A,
378
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
379
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
380
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
381
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
382
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F
419
+ b: (
420
+ _: A,
421
+ arg: ArgForCombinator<Arg>,
422
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
423
+ ) => B,
424
+ c: (
425
+ _: B,
426
+ arg: ArgForCombinator<Arg>,
427
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
428
+ ) => C,
429
+ d: (
430
+ _: C,
431
+ arg: ArgForCombinator<Arg>,
432
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
433
+ ) => D,
434
+ e: (
435
+ _: D,
436
+ arg: ArgForCombinator<Arg>,
437
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
438
+ ) => E,
439
+ f: (
440
+ _: E,
441
+ arg: ArgForCombinator<Arg>,
442
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
443
+ ) => F
383
444
  ): CommandOutHelper<Arg, F, Id, I18nKey, State>
384
445
  <
385
446
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -404,15 +465,39 @@ export declare namespace Commander {
404
465
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
405
466
  : never
406
467
  >,
407
- arg: NoInfer<Arg>,
468
+ arg: ArgForCombinator<Arg>,
408
469
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
409
470
  ) => A,
410
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
411
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
412
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
413
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
414
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
415
- g: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G
471
+ b: (
472
+ _: A,
473
+ arg: ArgForCombinator<Arg>,
474
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
475
+ ) => B,
476
+ c: (
477
+ _: B,
478
+ arg: ArgForCombinator<Arg>,
479
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
480
+ ) => C,
481
+ d: (
482
+ _: C,
483
+ arg: ArgForCombinator<Arg>,
484
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
485
+ ) => D,
486
+ e: (
487
+ _: D,
488
+ arg: ArgForCombinator<Arg>,
489
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
490
+ ) => E,
491
+ f: (
492
+ _: E,
493
+ arg: ArgForCombinator<Arg>,
494
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
495
+ ) => F,
496
+ g: (
497
+ _: F,
498
+ arg: ArgForCombinator<Arg>,
499
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
500
+ ) => G
416
501
  ): CommandOutHelper<Arg, G, Id, I18nKey, State>
417
502
  <
418
503
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -438,16 +523,44 @@ export declare namespace Commander {
438
523
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
439
524
  : never
440
525
  >,
441
- arg: NoInfer<Arg>,
526
+ arg: ArgForCombinator<Arg>,
442
527
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
443
528
  ) => A,
444
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
445
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
446
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
447
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
448
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
449
- g: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
450
- h: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H
529
+ b: (
530
+ _: A,
531
+ arg: ArgForCombinator<Arg>,
532
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
533
+ ) => B,
534
+ c: (
535
+ _: B,
536
+ arg: ArgForCombinator<Arg>,
537
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
538
+ ) => C,
539
+ d: (
540
+ _: C,
541
+ arg: ArgForCombinator<Arg>,
542
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
543
+ ) => D,
544
+ e: (
545
+ _: D,
546
+ arg: ArgForCombinator<Arg>,
547
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
548
+ ) => E,
549
+ f: (
550
+ _: E,
551
+ arg: ArgForCombinator<Arg>,
552
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
553
+ ) => F,
554
+ g: (
555
+ _: F,
556
+ arg: ArgForCombinator<Arg>,
557
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
558
+ ) => G,
559
+ h: (
560
+ _: G,
561
+ arg: ArgForCombinator<Arg>,
562
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
563
+ ) => H
451
564
  ): CommandOutHelper<Arg, H, Id, I18nKey, State>
452
565
  <
453
566
  Eff extends Effect.Yieldable<any, any, any, any>,
@@ -474,17 +587,49 @@ export declare namespace Commander {
474
587
  : [Eff] extends [Effect.Yieldable<any, infer _A, infer _E, infer R>] ? R
475
588
  : never
476
589
  >,
477
- arg: NoInfer<Arg>,
590
+ arg: ArgForCombinator<Arg>,
478
591
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
479
592
  ) => A,
480
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
481
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
482
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
483
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
484
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
485
- g: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
486
- h: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H,
487
- i: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => I
593
+ b: (
594
+ _: A,
595
+ arg: ArgForCombinator<Arg>,
596
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
597
+ ) => B,
598
+ c: (
599
+ _: B,
600
+ arg: ArgForCombinator<Arg>,
601
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
602
+ ) => C,
603
+ d: (
604
+ _: C,
605
+ arg: ArgForCombinator<Arg>,
606
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
607
+ ) => D,
608
+ e: (
609
+ _: D,
610
+ arg: ArgForCombinator<Arg>,
611
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
612
+ ) => E,
613
+ f: (
614
+ _: E,
615
+ arg: ArgForCombinator<Arg>,
616
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
617
+ ) => F,
618
+ g: (
619
+ _: F,
620
+ arg: ArgForCombinator<Arg>,
621
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
622
+ ) => G,
623
+ h: (
624
+ _: G,
625
+ arg: ArgForCombinator<Arg>,
626
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
627
+ ) => H,
628
+ i: (
629
+ _: H,
630
+ arg: ArgForCombinator<Arg>,
631
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
632
+ ) => I
488
633
  ): CommandOutHelper<Arg, I, Id, I18nKey, State>
489
634
  }
490
635
 
@@ -501,7 +646,11 @@ export declare namespace Commander {
501
646
  Arg = void
502
647
  >(
503
648
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
504
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
649
+ a: (
650
+ _: A,
651
+ arg: ArgForCombinator<Arg>,
652
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
653
+ ) => Eff
505
654
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
506
655
  <
507
656
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -510,8 +659,16 @@ export declare namespace Commander {
510
659
  Arg = void
511
660
  >(
512
661
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
513
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
514
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
662
+ a: (
663
+ _: A,
664
+ arg: ArgForCombinator<Arg>,
665
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
666
+ ) => B,
667
+ b: (
668
+ _: B,
669
+ arg: ArgForCombinator<Arg>,
670
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
671
+ ) => Eff
515
672
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
516
673
  <
517
674
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -521,9 +678,21 @@ export declare namespace Commander {
521
678
  Arg = void
522
679
  >(
523
680
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
524
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
525
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
526
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
681
+ a: (
682
+ _: A,
683
+ arg: ArgForCombinator<Arg>,
684
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
685
+ ) => B,
686
+ b: (
687
+ _: B,
688
+ arg: ArgForCombinator<Arg>,
689
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
690
+ ) => C,
691
+ c: (
692
+ _: C,
693
+ arg: ArgForCombinator<Arg>,
694
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
695
+ ) => Eff
527
696
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
528
697
  <
529
698
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -534,10 +703,26 @@ export declare namespace Commander {
534
703
  Arg = void
535
704
  >(
536
705
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
537
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
538
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
539
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
540
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
706
+ a: (
707
+ _: A,
708
+ arg: ArgForCombinator<Arg>,
709
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
710
+ ) => B,
711
+ b: (
712
+ _: B,
713
+ arg: ArgForCombinator<Arg>,
714
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
715
+ ) => C,
716
+ c: (
717
+ _: C,
718
+ arg: ArgForCombinator<Arg>,
719
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
720
+ ) => D,
721
+ d: (
722
+ _: D,
723
+ arg: ArgForCombinator<Arg>,
724
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
725
+ ) => Eff
541
726
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
542
727
  <
543
728
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -549,11 +734,31 @@ export declare namespace Commander {
549
734
  Arg = void
550
735
  >(
551
736
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
552
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
553
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
554
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
555
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
556
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
737
+ a: (
738
+ _: A,
739
+ arg: ArgForCombinator<Arg>,
740
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
741
+ ) => B,
742
+ b: (
743
+ _: B,
744
+ arg: ArgForCombinator<Arg>,
745
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
746
+ ) => C,
747
+ c: (
748
+ _: C,
749
+ arg: ArgForCombinator<Arg>,
750
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
751
+ ) => D,
752
+ d: (
753
+ _: D,
754
+ arg: ArgForCombinator<Arg>,
755
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
756
+ ) => E,
757
+ e: (
758
+ _: E,
759
+ arg: ArgForCombinator<Arg>,
760
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
761
+ ) => Eff
557
762
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
558
763
  <
559
764
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -566,12 +771,36 @@ export declare namespace Commander {
566
771
  Arg = void
567
772
  >(
568
773
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
569
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
570
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
571
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
572
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
573
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
574
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
774
+ a: (
775
+ _: A,
776
+ arg: ArgForCombinator<Arg>,
777
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
778
+ ) => B,
779
+ b: (
780
+ _: B,
781
+ arg: ArgForCombinator<Arg>,
782
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
783
+ ) => C,
784
+ c: (
785
+ _: C,
786
+ arg: ArgForCombinator<Arg>,
787
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
788
+ ) => D,
789
+ d: (
790
+ _: D,
791
+ arg: ArgForCombinator<Arg>,
792
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
793
+ ) => E,
794
+ e: (
795
+ _: E,
796
+ arg: ArgForCombinator<Arg>,
797
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
798
+ ) => F,
799
+ f: (
800
+ _: F,
801
+ arg: ArgForCombinator<Arg>,
802
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
803
+ ) => Eff
575
804
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
576
805
  <
577
806
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -585,13 +814,41 @@ export declare namespace Commander {
585
814
  Arg = void
586
815
  >(
587
816
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
588
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
589
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
590
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
591
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
592
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
593
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
594
- g: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
817
+ a: (
818
+ _: A,
819
+ arg: ArgForCombinator<Arg>,
820
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
821
+ ) => B,
822
+ b: (
823
+ _: B,
824
+ arg: ArgForCombinator<Arg>,
825
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
826
+ ) => C,
827
+ c: (
828
+ _: C,
829
+ arg: ArgForCombinator<Arg>,
830
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
831
+ ) => D,
832
+ d: (
833
+ _: D,
834
+ arg: ArgForCombinator<Arg>,
835
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
836
+ ) => E,
837
+ e: (
838
+ _: E,
839
+ arg: ArgForCombinator<Arg>,
840
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
841
+ ) => F,
842
+ f: (
843
+ _: F,
844
+ arg: ArgForCombinator<Arg>,
845
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
846
+ ) => G,
847
+ g: (
848
+ _: G,
849
+ arg: ArgForCombinator<Arg>,
850
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
851
+ ) => Eff
595
852
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
596
853
  <
597
854
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -606,14 +863,46 @@ export declare namespace Commander {
606
863
  Arg = void
607
864
  >(
608
865
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
609
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
610
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
611
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
612
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
613
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
614
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
615
- g: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H,
616
- h: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
866
+ a: (
867
+ _: A,
868
+ arg: ArgForCombinator<Arg>,
869
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
870
+ ) => B,
871
+ b: (
872
+ _: B,
873
+ arg: ArgForCombinator<Arg>,
874
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
875
+ ) => C,
876
+ c: (
877
+ _: C,
878
+ arg: ArgForCombinator<Arg>,
879
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
880
+ ) => D,
881
+ d: (
882
+ _: D,
883
+ arg: ArgForCombinator<Arg>,
884
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
885
+ ) => E,
886
+ e: (
887
+ _: E,
888
+ arg: ArgForCombinator<Arg>,
889
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
890
+ ) => F,
891
+ f: (
892
+ _: F,
893
+ arg: ArgForCombinator<Arg>,
894
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
895
+ ) => G,
896
+ g: (
897
+ _: G,
898
+ arg: ArgForCombinator<Arg>,
899
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
900
+ ) => H,
901
+ h: (
902
+ _: H,
903
+ arg: ArgForCombinator<Arg>,
904
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
905
+ ) => Eff
617
906
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
618
907
  <
619
908
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -629,15 +918,51 @@ export declare namespace Commander {
629
918
  Arg = void
630
919
  >(
631
920
  body: (arg: Arg, ctx: CommandContextLocal2<Id, I18nKey, State>) => A,
632
- a: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
633
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
634
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
635
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
636
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
637
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
638
- g: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H,
639
- h: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => I,
640
- i: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
921
+ a: (
922
+ _: A,
923
+ arg: ArgForCombinator<Arg>,
924
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
925
+ ) => B,
926
+ b: (
927
+ _: B,
928
+ arg: ArgForCombinator<Arg>,
929
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
930
+ ) => C,
931
+ c: (
932
+ _: C,
933
+ arg: ArgForCombinator<Arg>,
934
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
935
+ ) => D,
936
+ d: (
937
+ _: D,
938
+ arg: ArgForCombinator<Arg>,
939
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
940
+ ) => E,
941
+ e: (
942
+ _: E,
943
+ arg: ArgForCombinator<Arg>,
944
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
945
+ ) => F,
946
+ f: (
947
+ _: F,
948
+ arg: ArgForCombinator<Arg>,
949
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
950
+ ) => G,
951
+ g: (
952
+ _: G,
953
+ arg: ArgForCombinator<Arg>,
954
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
955
+ ) => H,
956
+ h: (
957
+ _: H,
958
+ arg: ArgForCombinator<Arg>,
959
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
960
+ ) => I,
961
+ i: (
962
+ _: H,
963
+ arg: ArgForCombinator<Arg>,
964
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
965
+ ) => Eff
641
966
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
642
967
  }
643
968
 
@@ -670,7 +995,7 @@ export declare namespace Commander {
670
995
  EEff,
671
996
  REff
672
997
  >,
673
- arg: NoInfer<Arg>,
998
+ arg: ArgForCombinator<Arg>,
674
999
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
675
1000
  ) => A
676
1001
  ): CommandOutHelper<Arg, A, Id, I18nKey, State>
@@ -684,10 +1009,14 @@ export declare namespace Commander {
684
1009
  EEff,
685
1010
  REff
686
1011
  >,
687
- arg: NoInfer<Arg>,
1012
+ arg: ArgForCombinator<Arg>,
688
1013
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
689
1014
  ) => A,
690
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B
1015
+ b: (
1016
+ _: A,
1017
+ arg: ArgForCombinator<Arg>,
1018
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1019
+ ) => B
691
1020
  ): CommandOutHelper<Arg, B, Id, I18nKey, State>
692
1021
  <
693
1022
  A,
@@ -700,11 +1029,19 @@ export declare namespace Commander {
700
1029
  EEff,
701
1030
  REff
702
1031
  >,
703
- arg: NoInfer<Arg>,
1032
+ arg: ArgForCombinator<Arg>,
704
1033
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
705
1034
  ) => A,
706
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
707
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C
1035
+ b: (
1036
+ _: A,
1037
+ arg: ArgForCombinator<Arg>,
1038
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1039
+ ) => B,
1040
+ c: (
1041
+ _: B,
1042
+ arg: ArgForCombinator<Arg>,
1043
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1044
+ ) => C
708
1045
  ): CommandOutHelper<Arg, C, Id, I18nKey, State>
709
1046
  <
710
1047
  A,
@@ -718,12 +1055,24 @@ export declare namespace Commander {
718
1055
  EEff,
719
1056
  REff
720
1057
  >,
721
- arg: NoInfer<Arg>,
1058
+ arg: ArgForCombinator<Arg>,
722
1059
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
723
1060
  ) => A,
724
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
725
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
726
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D
1061
+ b: (
1062
+ _: A,
1063
+ arg: ArgForCombinator<Arg>,
1064
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1065
+ ) => B,
1066
+ c: (
1067
+ _: B,
1068
+ arg: ArgForCombinator<Arg>,
1069
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1070
+ ) => C,
1071
+ d: (
1072
+ _: C,
1073
+ arg: ArgForCombinator<Arg>,
1074
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1075
+ ) => D
727
1076
  ): CommandOutHelper<Arg, D, Id, I18nKey, State>
728
1077
  <
729
1078
  A,
@@ -738,13 +1087,29 @@ export declare namespace Commander {
738
1087
  EEff,
739
1088
  REff
740
1089
  >,
741
- arg: NoInfer<Arg>,
1090
+ arg: ArgForCombinator<Arg>,
742
1091
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
743
1092
  ) => A,
744
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
745
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
746
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
747
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E
1093
+ b: (
1094
+ _: A,
1095
+ arg: ArgForCombinator<Arg>,
1096
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1097
+ ) => B,
1098
+ c: (
1099
+ _: B,
1100
+ arg: ArgForCombinator<Arg>,
1101
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1102
+ ) => C,
1103
+ d: (
1104
+ _: C,
1105
+ arg: ArgForCombinator<Arg>,
1106
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1107
+ ) => D,
1108
+ e: (
1109
+ _: D,
1110
+ arg: ArgForCombinator<Arg>,
1111
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1112
+ ) => E
748
1113
  ): CommandOutHelper<Arg, E, Id, I18nKey, State>
749
1114
  <
750
1115
  A,
@@ -760,14 +1125,34 @@ export declare namespace Commander {
760
1125
  EEff,
761
1126
  REff
762
1127
  >,
763
- arg: NoInfer<Arg>,
1128
+ arg: ArgForCombinator<Arg>,
764
1129
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
765
1130
  ) => A,
766
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
767
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
768
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
769
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
770
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F
1131
+ b: (
1132
+ _: A,
1133
+ arg: ArgForCombinator<Arg>,
1134
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1135
+ ) => B,
1136
+ c: (
1137
+ _: B,
1138
+ arg: ArgForCombinator<Arg>,
1139
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1140
+ ) => C,
1141
+ d: (
1142
+ _: C,
1143
+ arg: ArgForCombinator<Arg>,
1144
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1145
+ ) => D,
1146
+ e: (
1147
+ _: D,
1148
+ arg: ArgForCombinator<Arg>,
1149
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1150
+ ) => E,
1151
+ f: (
1152
+ _: E,
1153
+ arg: ArgForCombinator<Arg>,
1154
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1155
+ ) => F
771
1156
  ): CommandOutHelper<Arg, F, Id, I18nKey, State>
772
1157
  <
773
1158
  A,
@@ -784,15 +1169,39 @@ export declare namespace Commander {
784
1169
  EEff,
785
1170
  REff
786
1171
  >,
787
- arg: NoInfer<Arg>,
1172
+ arg: ArgForCombinator<Arg>,
788
1173
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
789
1174
  ) => A,
790
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
791
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
792
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
793
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
794
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
795
- g: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G
1175
+ b: (
1176
+ _: A,
1177
+ arg: ArgForCombinator<Arg>,
1178
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1179
+ ) => B,
1180
+ c: (
1181
+ _: B,
1182
+ arg: ArgForCombinator<Arg>,
1183
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1184
+ ) => C,
1185
+ d: (
1186
+ _: C,
1187
+ arg: ArgForCombinator<Arg>,
1188
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1189
+ ) => D,
1190
+ e: (
1191
+ _: D,
1192
+ arg: ArgForCombinator<Arg>,
1193
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1194
+ ) => E,
1195
+ f: (
1196
+ _: E,
1197
+ arg: ArgForCombinator<Arg>,
1198
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1199
+ ) => F,
1200
+ g: (
1201
+ _: F,
1202
+ arg: ArgForCombinator<Arg>,
1203
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1204
+ ) => G
796
1205
  ): CommandOutHelper<Arg, G, Id, I18nKey, State>
797
1206
  <A, B, C, D, E, F, G, H extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>>(
798
1207
  a: (
@@ -801,16 +1210,44 @@ export declare namespace Commander {
801
1210
  EEff,
802
1211
  REff
803
1212
  >,
804
- arg: NoInfer<Arg>,
1213
+ arg: ArgForCombinator<Arg>,
805
1214
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
806
1215
  ) => A,
807
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
808
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
809
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
810
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
811
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
812
- g: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
813
- h: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H
1216
+ b: (
1217
+ _: A,
1218
+ arg: ArgForCombinator<Arg>,
1219
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1220
+ ) => B,
1221
+ c: (
1222
+ _: B,
1223
+ arg: ArgForCombinator<Arg>,
1224
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1225
+ ) => C,
1226
+ d: (
1227
+ _: C,
1228
+ arg: ArgForCombinator<Arg>,
1229
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1230
+ ) => D,
1231
+ e: (
1232
+ _: D,
1233
+ arg: ArgForCombinator<Arg>,
1234
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1235
+ ) => E,
1236
+ f: (
1237
+ _: E,
1238
+ arg: ArgForCombinator<Arg>,
1239
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1240
+ ) => F,
1241
+ g: (
1242
+ _: F,
1243
+ arg: ArgForCombinator<Arg>,
1244
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1245
+ ) => G,
1246
+ h: (
1247
+ _: G,
1248
+ arg: ArgForCombinator<Arg>,
1249
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1250
+ ) => H
814
1251
  ): CommandOutHelper<Arg, H, Id, I18nKey, State>
815
1252
  <A, B, C, D, E, F, G, H, I extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>>(
816
1253
  a: (
@@ -819,17 +1256,49 @@ export declare namespace Commander {
819
1256
  EEff,
820
1257
  REff
821
1258
  >,
822
- arg: NoInfer<Arg>,
1259
+ arg: ArgForCombinator<Arg>,
823
1260
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
824
1261
  ) => A,
825
- b: (_: A, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => B,
826
- c: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
827
- d: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
828
- e: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
829
- f: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
830
- g: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
831
- h: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H,
832
- i: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => I
1262
+ b: (
1263
+ _: A,
1264
+ arg: ArgForCombinator<Arg>,
1265
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1266
+ ) => B,
1267
+ c: (
1268
+ _: B,
1269
+ arg: ArgForCombinator<Arg>,
1270
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1271
+ ) => C,
1272
+ d: (
1273
+ _: C,
1274
+ arg: ArgForCombinator<Arg>,
1275
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1276
+ ) => D,
1277
+ e: (
1278
+ _: D,
1279
+ arg: ArgForCombinator<Arg>,
1280
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1281
+ ) => E,
1282
+ f: (
1283
+ _: E,
1284
+ arg: ArgForCombinator<Arg>,
1285
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1286
+ ) => F,
1287
+ g: (
1288
+ _: F,
1289
+ arg: ArgForCombinator<Arg>,
1290
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1291
+ ) => G,
1292
+ h: (
1293
+ _: G,
1294
+ arg: ArgForCombinator<Arg>,
1295
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1296
+ ) => H,
1297
+ i: (
1298
+ _: H,
1299
+ arg: ArgForCombinator<Arg>,
1300
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1301
+ ) => I
833
1302
  ): CommandOutHelper<Arg, I, Id, I18nKey, State>
834
1303
  }
835
1304
 
@@ -855,7 +1324,7 @@ export declare namespace Commander {
855
1324
  EEff,
856
1325
  REff
857
1326
  >,
858
- arg: NoInfer<Arg>,
1327
+ arg: ArgForCombinator<Arg>,
859
1328
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
860
1329
  ) => Eff
861
1330
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
@@ -870,10 +1339,14 @@ export declare namespace Commander {
870
1339
  EEff,
871
1340
  REff
872
1341
  >,
873
- arg: NoInfer<Arg>,
1342
+ arg: ArgForCombinator<Arg>,
874
1343
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
875
1344
  ) => B,
876
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1345
+ b: (
1346
+ _: B,
1347
+ arg: ArgForCombinator<Arg>,
1348
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1349
+ ) => Eff
877
1350
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
878
1351
  <
879
1352
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -887,11 +1360,19 @@ export declare namespace Commander {
887
1360
  EEff,
888
1361
  REff
889
1362
  >,
890
- arg: NoInfer<Arg>,
1363
+ arg: ArgForCombinator<Arg>,
891
1364
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
892
1365
  ) => B,
893
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
894
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1366
+ b: (
1367
+ _: B,
1368
+ arg: ArgForCombinator<Arg>,
1369
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1370
+ ) => C,
1371
+ c: (
1372
+ _: C,
1373
+ arg: ArgForCombinator<Arg>,
1374
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1375
+ ) => Eff
895
1376
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
896
1377
  <
897
1378
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -906,12 +1387,24 @@ export declare namespace Commander {
906
1387
  EEff,
907
1388
  REff
908
1389
  >,
909
- arg: NoInfer<Arg>,
1390
+ arg: ArgForCombinator<Arg>,
910
1391
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
911
1392
  ) => B,
912
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
913
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
914
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1393
+ b: (
1394
+ _: B,
1395
+ arg: ArgForCombinator<Arg>,
1396
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1397
+ ) => C,
1398
+ c: (
1399
+ _: C,
1400
+ arg: ArgForCombinator<Arg>,
1401
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1402
+ ) => D,
1403
+ d: (
1404
+ _: D,
1405
+ arg: ArgForCombinator<Arg>,
1406
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1407
+ ) => Eff
915
1408
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
916
1409
  <
917
1410
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -927,13 +1420,29 @@ export declare namespace Commander {
927
1420
  EEff,
928
1421
  REff
929
1422
  >,
930
- arg: NoInfer<Arg>,
1423
+ arg: ArgForCombinator<Arg>,
931
1424
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
932
1425
  ) => B,
933
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
934
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
935
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
936
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1426
+ b: (
1427
+ _: B,
1428
+ arg: ArgForCombinator<Arg>,
1429
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1430
+ ) => C,
1431
+ c: (
1432
+ _: C,
1433
+ arg: ArgForCombinator<Arg>,
1434
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1435
+ ) => D,
1436
+ d: (
1437
+ _: D,
1438
+ arg: ArgForCombinator<Arg>,
1439
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1440
+ ) => E,
1441
+ e: (
1442
+ _: E,
1443
+ arg: ArgForCombinator<Arg>,
1444
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1445
+ ) => Eff
937
1446
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
938
1447
  <
939
1448
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -950,14 +1459,34 @@ export declare namespace Commander {
950
1459
  EEff,
951
1460
  REff
952
1461
  >,
953
- arg: NoInfer<Arg>,
1462
+ arg: ArgForCombinator<Arg>,
954
1463
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
955
1464
  ) => B,
956
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
957
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
958
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
959
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
960
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1465
+ b: (
1466
+ _: B,
1467
+ arg: ArgForCombinator<Arg>,
1468
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1469
+ ) => C,
1470
+ c: (
1471
+ _: C,
1472
+ arg: ArgForCombinator<Arg>,
1473
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1474
+ ) => D,
1475
+ d: (
1476
+ _: D,
1477
+ arg: ArgForCombinator<Arg>,
1478
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1479
+ ) => E,
1480
+ e: (
1481
+ _: E,
1482
+ arg: ArgForCombinator<Arg>,
1483
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1484
+ ) => F,
1485
+ f: (
1486
+ _: F,
1487
+ arg: ArgForCombinator<Arg>,
1488
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1489
+ ) => Eff
961
1490
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
962
1491
  <
963
1492
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -975,15 +1504,39 @@ export declare namespace Commander {
975
1504
  EEff,
976
1505
  REff
977
1506
  >,
978
- arg: NoInfer<Arg>,
1507
+ arg: ArgForCombinator<Arg>,
979
1508
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
980
1509
  ) => B,
981
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
982
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
983
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
984
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
985
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
986
- g: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1510
+ b: (
1511
+ _: B,
1512
+ arg: ArgForCombinator<Arg>,
1513
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1514
+ ) => C,
1515
+ c: (
1516
+ _: C,
1517
+ arg: ArgForCombinator<Arg>,
1518
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1519
+ ) => D,
1520
+ d: (
1521
+ _: D,
1522
+ arg: ArgForCombinator<Arg>,
1523
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1524
+ ) => E,
1525
+ e: (
1526
+ _: E,
1527
+ arg: ArgForCombinator<Arg>,
1528
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1529
+ ) => F,
1530
+ f: (
1531
+ _: F,
1532
+ arg: ArgForCombinator<Arg>,
1533
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1534
+ ) => G,
1535
+ g: (
1536
+ _: G,
1537
+ arg: ArgForCombinator<Arg>,
1538
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1539
+ ) => Eff
987
1540
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
988
1541
  <
989
1542
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -1002,16 +1555,44 @@ export declare namespace Commander {
1002
1555
  EEff,
1003
1556
  REff
1004
1557
  >,
1005
- arg: NoInfer<Arg>,
1558
+ arg: ArgForCombinator<Arg>,
1006
1559
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1007
1560
  ) => B,
1008
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
1009
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
1010
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
1011
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
1012
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
1013
- g: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H,
1014
- h: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1561
+ b: (
1562
+ _: B,
1563
+ arg: ArgForCombinator<Arg>,
1564
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1565
+ ) => C,
1566
+ c: (
1567
+ _: C,
1568
+ arg: ArgForCombinator<Arg>,
1569
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1570
+ ) => D,
1571
+ d: (
1572
+ _: D,
1573
+ arg: ArgForCombinator<Arg>,
1574
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1575
+ ) => E,
1576
+ e: (
1577
+ _: E,
1578
+ arg: ArgForCombinator<Arg>,
1579
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1580
+ ) => F,
1581
+ f: (
1582
+ _: F,
1583
+ arg: ArgForCombinator<Arg>,
1584
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1585
+ ) => G,
1586
+ g: (
1587
+ _: G,
1588
+ arg: ArgForCombinator<Arg>,
1589
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1590
+ ) => H,
1591
+ h: (
1592
+ _: H,
1593
+ arg: ArgForCombinator<Arg>,
1594
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1595
+ ) => Eff
1015
1596
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
1016
1597
  <
1017
1598
  Eff extends Effect.Effect<any, any, RT | CommandContext | `Commander.Command.${Id}.state`>,
@@ -1031,17 +1612,49 @@ export declare namespace Commander {
1031
1612
  EEff,
1032
1613
  REff
1033
1614
  >,
1034
- arg: NoInfer<Arg>,
1615
+ arg: ArgForCombinator<Arg>,
1035
1616
  ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1036
1617
  ) => B,
1037
- b: (_: B, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => C,
1038
- c: (_: C, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => D,
1039
- d: (_: D, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => E,
1040
- e: (_: E, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => F,
1041
- f: (_: F, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => G,
1042
- g: (_: G, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => H,
1043
- h: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => I,
1044
- i: (_: H, arg: NoInfer<Arg>, ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>) => Eff
1618
+ b: (
1619
+ _: B,
1620
+ arg: ArgForCombinator<Arg>,
1621
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1622
+ ) => C,
1623
+ c: (
1624
+ _: C,
1625
+ arg: ArgForCombinator<Arg>,
1626
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1627
+ ) => D,
1628
+ d: (
1629
+ _: D,
1630
+ arg: ArgForCombinator<Arg>,
1631
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1632
+ ) => E,
1633
+ e: (
1634
+ _: E,
1635
+ arg: ArgForCombinator<Arg>,
1636
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1637
+ ) => F,
1638
+ f: (
1639
+ _: F,
1640
+ arg: ArgForCombinator<Arg>,
1641
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1642
+ ) => G,
1643
+ g: (
1644
+ _: G,
1645
+ arg: ArgForCombinator<Arg>,
1646
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1647
+ ) => H,
1648
+ h: (
1649
+ _: H,
1650
+ arg: ArgForCombinator<Arg>,
1651
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1652
+ ) => I,
1653
+ i: (
1654
+ _: H,
1655
+ arg: ArgForCombinator<Arg>,
1656
+ ctx: CommandContextLocal2<NoInfer<Id>, NoInfer<I18nKey>, NoInfer<State>>
1657
+ ) => Eff
1045
1658
  ): CommandOutHelper<Arg, Eff, Id, I18nKey, State>
1046
1659
  }
1047
1660
  }
@@ -1187,10 +1800,22 @@ export const CommanderStatic = {
1187
1800
  /**
1188
1801
  * if true, previous toasts with this key will be replaced
1189
1802
  */
1190
- stableToastId?: undefined | true | string | ((id: string, ...args: Args) => true | string | undefined)
1191
- errorRenderer?: ErrorRenderer<E, Args>
1192
- onWaiting?: null | undefined | string | ((id: string, ...args: Args) => string | null | undefined)
1193
- onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args) => string | null | undefined)
1803
+ stableToastId?:
1804
+ | undefined
1805
+ | true
1806
+ | string
1807
+ | ((id: string, arg: NoInfer<Args>[0], ctx: NoInfer<Args>[1]) => true | string | undefined)
1808
+ errorRenderer?: (e: E, action: string, arg: NoInfer<Args>[0], ctx: NoInfer<Args>[1]) => string | undefined
1809
+ onWaiting?:
1810
+ | null
1811
+ | undefined
1812
+ | string
1813
+ | ((id: string, arg: NoInfer<Args>[0], ctx: NoInfer<Args>[1]) => string | null | undefined)
1814
+ onSuccess?:
1815
+ | null
1816
+ | undefined
1817
+ | string
1818
+ | ((a: A, action: string, arg: NoInfer<Args>[0], ctx: NoInfer<Args>[1]) => string | null | undefined)
1194
1819
  }
1195
1820
  ) =>
1196
1821
  (
@@ -1244,7 +1869,7 @@ export const CommanderStatic = {
1244
1869
  + (S.is(OperationSuccess)(a) && a.message ? "\n" + a.message : "")),
1245
1870
  onFailure: defaultFailureMessageHandler(
1246
1871
  hasCustomFailure ? intl.formatMessage({ id: customFailure }, cc.state) : cc.action,
1247
- options?.errorRenderer
1872
+ options?.errorRenderer as ErrorRenderer<E, Args> | undefined
1248
1873
  ),
1249
1874
  stableToastId
1250
1875
  })(_, ...args)
@@ -1324,7 +1949,7 @@ const getStateValues = <const Id extends string, const I18nKey extends string, S
1324
1949
  // class preserves JSDoc throughout..
1325
1950
  export class CommanderImpl<RT, RTHooks> {
1326
1951
  constructor(
1327
- private readonly rt: ServiceMap.ServiceMap<RT>,
1952
+ private readonly rt: Context.Context<RT>,
1328
1953
  private readonly intl: I18n,
1329
1954
  private readonly hooks: Layer.Layer<RTHooks, never, RT>
1330
1955
  ) {
@@ -1386,7 +2011,7 @@ export class CommanderImpl<RT, RTHooks> {
1386
2011
  }
1387
2012
 
1388
2013
  const key = `Commander.Command.${id}.state` as const
1389
- const stateTag = ServiceMap.Service<typeof key, State>(key)
2014
+ const stateTag = Context.Service<typeof key, State>(key)
1390
2015
 
1391
2016
  const makeContext_ = () => this.makeContext(id, { ...options, state: state?.value })
1392
2017
  const initialContext = makeContext_()
@@ -1480,7 +2105,7 @@ export class CommanderImpl<RT, RTHooks> {
1480
2105
  const computeAllowed = options?.allowed
1481
2106
  const allowed = computeAllowed ? computed(() => computeAllowed(id, state)) : true
1482
2107
 
1483
- const rt = Effect.services<RT | RTHooks>().pipe(Effect.provide(this.hooks)).pipe(Effect.runSyncWith(this.rt))
2108
+ const rt = Effect.context<RT | RTHooks>().pipe(Effect.provide(this.hooks)).pipe(Effect.runSyncWith(this.rt))
1484
2109
  const runFork = Effect.runForkWith(rt)
1485
2110
 
1486
2111
  const handle = Object.assign((arg: Arg) => {
@@ -1655,7 +2280,7 @@ export class CommanderImpl<RT, RTHooks> {
1655
2280
  id: Id | { id: Id },
1656
2281
  options?: FnOptions<Id, I18nKey, State>
1657
2282
  ): Commander.Gen<RT | RTHooks, Id, I18nKey, State> & Commander.NonGen<RT | RTHooks, Id, I18nKey, State> & {
1658
- state: ServiceMap.Service<`Commander.Command.${Id}.state`, State>
2283
+ state: Context.Service<`Commander.Command.${Id}.state`, State>
1659
2284
  } =>
1660
2285
  Object.assign(
1661
2286
  (
@@ -1680,13 +2305,13 @@ export class CommanderImpl<RT, RTHooks> {
1680
2305
  },
1681
2306
  makeBaseInfo(typeof id === "string" ? id : id.id, options),
1682
2307
  {
1683
- state: ServiceMap.Service<`Commander.Command.${Id}.state`, State>(
2308
+ state: Context.Service<`Commander.Command.${Id}.state`, State>(
1684
2309
  `Commander.Command.${typeof id === "string" ? id : id.id}.state`
1685
2310
  )
1686
2311
  }
1687
2312
  )
1688
2313
 
1689
- /** @experimental @deprecated */
2314
+ /** @deprecated */
1690
2315
  alt2: <
1691
2316
  const Id extends string,
1692
2317
  MutArg,
@@ -1738,7 +2363,6 @@ export class CommanderImpl<RT, RTHooks> {
1738
2363
  )), baseInfo) as any
1739
2364
  }
1740
2365
 
1741
- /** @experimental */
1742
2366
  alt = this.makeCommand as unknown as <
1743
2367
  const Id extends string,
1744
2368
  const I18nKey extends string = Id,
@@ -1816,7 +2440,7 @@ export class CommanderImpl<RT, RTHooks> {
1816
2440
  },
1817
2441
  makeBaseInfo(mutation.id, options),
1818
2442
  {
1819
- state: ServiceMap.Service<`Commander.Command.${Id}.state`, State>(
2443
+ state: Context.Service<`Commander.Command.${Id}.state`, State>(
1820
2444
  `Commander.Command.${mutation.id}.state`
1821
2445
  )
1822
2446
  }
@@ -1824,10 +2448,10 @@ export class CommanderImpl<RT, RTHooks> {
1824
2448
  }
1825
2449
 
1826
2450
  // @effect-diagnostics-next-line missingEffectServiceDependency:off
1827
- export class Commander extends ServiceMap.Service<Commander>()("Commander", {
2451
+ export class Commander extends Context.Service<Commander>()("Commander", {
1828
2452
  make: Effect.gen(function*() {
1829
2453
  const i18n = yield* I18n
1830
- return <RT, RTHooks>(rt: ServiceMap.ServiceMap<RT>, rtHooks: Layer.Layer<RTHooks, never, RT>) =>
2454
+ return <RT, RTHooks>(rt: Context.Context<RT>, rtHooks: Layer.Layer<RTHooks, never, RT>) =>
1831
2455
  new CommanderImpl(rt, i18n, rtHooks)
1832
2456
  })
1833
2457
  }) {