@effect-app/vue 2.72.0 → 2.72.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/src/makeClient.ts CHANGED
@@ -1125,24 +1125,24 @@ export const makeClient = <RT, RE, RL>(
1125
1125
  & ReturnType<typeof useMutation<I, E, A, R, Request, Id>>
1126
1126
  & (typeof client[Key] extends
1127
1127
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1128
- ? Commander.CommandContextLocal<Id>
1128
+ ? Commander.CommandContextLocal<Id, Id>
1129
1129
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1130
- ? Commander.CommandContextLocal<Id>
1130
+ ? Commander.CommandContextLocal<Id, Id>
1131
1131
  : never)
1132
1132
  : typeof client[Key] extends RequestHandler<infer A, infer E, infer R, infer Request, infer Id> ?
1133
1133
  & ReturnType<typeof useMutation<E, A, R, Request, Id>>
1134
1134
  & (typeof client[Key] extends
1135
1135
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1136
- ? Commander.CommandContextLocal<Id>
1136
+ ? Commander.CommandContextLocal<Id, Id>
1137
1137
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1138
- ? Commander.CommandContextLocal<Id>
1138
+ ? Commander.CommandContextLocal<Id, Id>
1139
1139
  : never)
1140
1140
  : never)
1141
1141
  & (typeof client[Key] extends
1142
1142
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1143
- ? Commander.CommandContextLocal<Id>
1143
+ ? Commander.CommandContextLocal<Id, Id>
1144
1144
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1145
- ? Commander.CommandContextLocal<Id>
1145
+ ? Commander.CommandContextLocal<Id, Id>
1146
1146
  : never)
1147
1147
  & (typeof client[Key] extends
1148
1148
  RequestHandlerWithInput<infer I, infer A, infer E, infer R, infer Request, infer Id>
@@ -1153,15 +1153,15 @@ export const makeClient = <RT, RE, RL>(
1153
1153
  & {
1154
1154
  wrap: typeof client[Key] extends
1155
1155
  RequestHandlerWithInput<infer I, infer A, infer E, infer _R, infer _Request, infer Id>
1156
- ? ReturnType<typeof wrap<Id, [I], A, E, never>> & Commander.CommandContextLocal<Id>
1156
+ ? ReturnType<typeof wrap<Id, [I], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1157
1157
  : typeof client[Key] extends RequestHandler<infer A, infer E, infer _R, infer _Request, infer Id>
1158
- ? ReturnType<typeof wrap<Id, [], A, E, never>> & Commander.CommandContextLocal<Id>
1158
+ ? ReturnType<typeof wrap<Id, [], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1159
1159
  : never
1160
1160
  fn: typeof client[Key] extends
1161
1161
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1162
- ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id>
1162
+ ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id, Id>
1163
1163
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1164
- ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id>
1164
+ ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id, Id>
1165
1165
  : never
1166
1166
  }
1167
1167
  }
@@ -1201,15 +1201,15 @@ export const makeClient = <RT, RE, RL>(
1201
1201
  [Key in keyof typeof client]:
1202
1202
  & (typeof client[Key] extends
1203
1203
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1204
- ? Commander.CommandContextLocal<Id>
1204
+ ? Commander.CommandContextLocal<Id, Id>
1205
1205
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1206
- ? Commander.CommandContextLocal<Id>
1206
+ ? Commander.CommandContextLocal<Id, Id>
1207
1207
  : never)
1208
1208
  & (typeof client[Key] extends
1209
1209
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1210
- ? Commander.CommandContextLocal<Id>
1210
+ ? Commander.CommandContextLocal<Id, Id>
1211
1211
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1212
- ? Commander.CommandContextLocal<Id>
1212
+ ? Commander.CommandContextLocal<Id, Id>
1213
1213
  : never)
1214
1214
  & (typeof client[Key] extends
1215
1215
  RequestHandlerWithInput<infer I, infer A, infer E, infer R, infer Request, infer Id>
@@ -1220,15 +1220,15 @@ export const makeClient = <RT, RE, RL>(
1220
1220
  & {
1221
1221
  wrap: typeof client[Key] extends
1222
1222
  RequestHandlerWithInput<infer I, infer A, infer E, infer _R, infer _Request, infer Id>
1223
- ? ReturnType<typeof wrap<Id, [I], A, E, never>> & Commander.CommandContextLocal<Id>
1223
+ ? ReturnType<typeof wrap<Id, [I], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1224
1224
  : typeof client[Key] extends RequestHandler<infer A, infer E, infer _R, infer _Request, infer Id>
1225
- ? ReturnType<typeof wrap<Id, [], A, E, never>> & Commander.CommandContextLocal<Id>
1225
+ ? ReturnType<typeof wrap<Id, [], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1226
1226
  : never
1227
1227
  fn: typeof client[Key] extends
1228
1228
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
1229
- ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id>
1229
+ ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id, Id>
1230
1230
  : typeof client[Key] extends RequestHandler<infer _A, infer _E, infer _R, infer _Request, infer Id>
1231
- ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id>
1231
+ ? ReturnType<typeof fn_<Id>> & Commander.CommandContextLocal<Id, Id>
1232
1232
  : never
1233
1233
  }
1234
1234
  & typeof client[Key]
@@ -9,8 +9,8 @@ export declare const useExperimental: (options?: {
9
9
  messages?: Record<string, string> | Record<string, MessageFormatElement[]>;
10
10
  toasts: any[];
11
11
  }) => {
12
- confirmOrInterrupt: (message?: string | undefined) => Effect.Effect<void, never, import("../src/experimental/intl.js").I18n | import("../src/experimental/confirm.js").Confirm | import("../src/experimental/commander.js").CommandContext>;
13
- confirm: (message?: string | undefined) => Effect.Effect<boolean, never, import("../src/experimental/intl.js").I18n | import("../src/experimental/confirm.js").Confirm | import("../src/experimental/commander.js").CommandContext>;
12
+ confirmOrInterrupt: (message?: string | undefined) => Effect.Effect<void, never, import("../src/experimental/commander.js").CommandContext | import("../src/experimental/intl.js").I18n | import("../src/experimental/confirm.js").Confirm>;
13
+ confirm: (message?: string | undefined) => Effect.Effect<boolean, never, import("../src/experimental/commander.js").CommandContext | import("../src/experimental/intl.js").I18n | import("../src/experimental/confirm.js").Confirm>;
14
14
  updateAction: <Args extends Array<unknown>>(update: (currentActionId: string, ...args: Args) => string) => <A, E, R_1>(_: Effect.Effect<A, E, R_1>, ...input: Args) => Effect.Effect<A, E, import("../src/experimental/commander.js").CommandContext | R_1>;
15
15
  defaultFailureMessageHandler: <E_1, Args extends Array<unknown>, AME, AMR>(actionMaker: string | ((o: import("effect/Option").Option<E_1>, ...args: Args) => string) | ((o: import("effect/Option").Option<E_1>, ...args: Args) => Effect.Effect<string, AME, AMR>), errorRenderer?: (e: E_1, action: string, ...args: Args) => string | undefined) => (o: import("effect/Option").Option<E_1>, ...args: Args) => Effect.Effect<string | {
16
16
  level: "warn";
@@ -21,23 +21,25 @@ export declare const useExperimental: (options?: {
21
21
  errorRenderer?: (e: E_1, action: string, ...args: Args_2) => string | undefined;
22
22
  onWaiting?: null | undefined | string | ((action: string, ...args: Args_2) => string | null | undefined);
23
23
  onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args_2) => string | null | undefined);
24
- }) => (self: Effect.Effect<A, E_1, R_2>, ...args: Args_2) => Effect.Effect<A, E_1, import("../src/experimental/intl.js").I18n | import("../src/experimental/withToast.js").WithToast | import("../src/experimental/commander.js").CommandContext | R_2>;
25
- alt: <const Id extends string>(id: Id, customI18nKey?: string) => Commander.CommandContextLocal<Id> & (<Args_3 extends Array<unknown>, A, E_2, R_3 extends Toast.Toast | I18n | WithToast | import("../src/experimental/commander.js").CommandContext>(handler: (...args: Args_3) => Effect.Effect<A, E_2, R_3>) => Commander.CommandOut<Args_3, A, E_2, R_3, Id>);
26
- fn: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.Gen<Toast.Toast | I18n | WithToast, Id> & Commander.NonGen<Toast.Toast | I18n | WithToast, Id>;
27
- wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4>(mutation: {
24
+ }) => (self: Effect.Effect<A, E_1, R_2>, ...args: Args_2) => Effect.Effect<A, E_1, import("../src/experimental/commander.js").CommandContext | import("../src/experimental/intl.js").I18n | R_2 | import("../src/experimental/withToast.js").WithToast>;
25
+ alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_3 extends Array<unknown>, A, E_2, R_3 extends Toast.Toast | I18n | WithToast | import("../src/experimental/commander.js").CommandContext>(handler: (...args: Args_3) => Effect.Effect<A, E_2, R_3>) => Commander.CommandOut<Args_3, A, E_2, R_3, Id, I18nKey>);
26
+ fn: <const Id extends string, const I18nKey_1 extends string = Id>(id: Id | {
27
+ id: Id;
28
+ }, customI18nKey?: I18nKey_1 | undefined) => Commander.Gen<Toast.Toast | I18n | WithToast, Id, I18nKey_1> & Commander.NonGen<Toast.Toast | I18n | WithToast, Id, I18nKey_1>;
29
+ wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4, I18nKey_2 extends string = Id>(mutation: (((...args: Args_3) => Effect.Effect<A_1, E_3, R_4>) & {
30
+ id: Id;
31
+ }) | {
28
32
  mutate: (...args: Args_3) => Effect.Effect<A_1, E_3, R_4>;
29
33
  id: Id;
30
- } | (((...args: Args_3) => Effect.Effect<A_1, E_3, R_4>) & {
34
+ }, customI18nKey?: I18nKey_2 | undefined) => Commander.CommandContextLocal<Id, I18nKey_2> & Commander.GenWrap<Toast.Toast | I18n | WithToast, Id, I18nKey_2, Args_3, A_1, E_3, R_4> & Commander.NonGenWrap<Toast.Toast | I18n | WithToast, Id, I18nKey_2, Args_3, A_1, E_3, R_4>;
35
+ alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
31
36
  id: Id;
32
- }), customI18nKey?: string) => Commander.CommandContextLocal<Id> & Commander.GenWrap<Toast.Toast | I18n | WithToast, Id, Args_3, A_1, E_3, R_4> & Commander.NonGenWrap<Toast.Toast | I18n | WithToast, Id, Args_3, A_1, E_3, R_4>;
33
- alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR>(id: Id | {
37
+ }) | {
34
38
  id: Id;
35
39
  mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
36
- } | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
37
- id: Id;
38
- })) => Commander.CommandContextLocal<Id> & (<Args_4 extends Array<unknown>, A_2, E_4, R_5 extends Toast.Toast | I18n | WithToast | import("../src/experimental/commander.js").CommandContext>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id> & {
40
+ }, customI18nKey?: I18nKey_3 | undefined) => Commander.CommandContextLocal<Id, I18nKey_3> & (<Args_4 extends Array<unknown>, A_2, E_4, R_5 extends Toast.Toast | I18n | WithToast | import("../src/experimental/commander.js").CommandContext>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id, I18nKey_3> & {
39
41
  mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
40
- }) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_5>) => Commander.CommandOut<Args_4, A_2, E_4, R_5, Id>);
42
+ }) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_5>) => Commander.CommandOut<Args_4, A_2, E_4, R_5, Id, I18nKey_3>);
41
43
  _tag: "Commander";
42
44
  };
43
45
  //# sourceMappingURL=stubs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../stubs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AAE9E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,OAAO,KAAK,KAAK,MAAM,8BAA8B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AA4C5D,eAAO,MAAM,aAAa,GAAI,WAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAM,oCAgBzG,CAAA;AAEH,eAAO,MAAM,eAAe,GAC1B,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,GAAG,EAAE,CAAA;CAAE;gCArEhG,CAAC;qBAIN,CAAC;kFAKL,GAAG,mEACmB,GAAI;+IAMV,GAAI,mEAGsB,GAAI,8DACV,CAAC,2BAA0B,GAAI,+EAGvD,GAAI;;;;kGAMJ,CAAC,2BAA2B,GAAG,iDAE7B,GAAI;0EAIR,CAAN;qBAAyB,CAAC,2BACN,GAAI;iBAGlB,CAAC,gDAGE,GAAG;iBAGV,CAAH,sDAKE,GAAI;6CAAyF,G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