@effect-app/vue 2.75.2 → 2.75.4

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
@@ -1151,9 +1151,9 @@ export const makeClient = <RT>(
1151
1151
  & {
1152
1152
  wrap: typeof client[Key] extends
1153
1153
  RequestHandlerWithInput<infer I, infer A, infer E, infer _R, infer _Request, infer Id>
1154
- ? ReturnType<typeof wrap<Id, [I], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1154
+ ? ReturnType<typeof wrap<Id, [I], A, E, never>> & Commander.CommandContextLocal<Id, Id>
1155
1155
  : typeof client[Key] extends RequestHandler<infer A, infer E, infer _R, infer _Request, infer Id>
1156
- ? ReturnType<typeof wrap<Id, [], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1156
+ ? ReturnType<typeof wrap<Id, [], A, E, never>> & Commander.CommandContextLocal<Id, Id>
1157
1157
  : never
1158
1158
  fn: typeof client[Key] extends
1159
1159
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
@@ -1219,9 +1219,9 @@ export const makeClient = <RT>(
1219
1219
  & {
1220
1220
  wrap: typeof client[Key] extends
1221
1221
  RequestHandlerWithInput<infer I, infer A, infer E, infer _R, infer _Request, infer Id>
1222
- ? ReturnType<typeof wrap<Id, [I], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1222
+ ? ReturnType<typeof wrap<Id, [I], A, E, never>> & Commander.CommandContextLocal<Id, Id>
1223
1223
  : typeof client[Key] extends RequestHandler<infer A, infer E, infer _R, infer _Request, infer Id>
1224
- ? ReturnType<typeof wrap<Id, [], A, E, never, Id>> & Commander.CommandContextLocal<Id, Id>
1224
+ ? ReturnType<typeof wrap<Id, [], A, E, never>> & Commander.CommandContextLocal<Id, Id>
1225
1225
  : never
1226
1226
  fn: typeof client[Key] extends
1227
1227
  RequestHandlerWithInput<infer _I, infer _A, infer _E, infer _R, infer _Request, infer Id>
@@ -22,36 +22,38 @@ export declare const useExperimental: (options?: {
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
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 | {
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 | `Commander.Command.${Id}.state`>(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, State extends {
27
+ [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
28
+ } = {
29
+ [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
30
+ }, const I18nKey_1 extends string = Id>(id: Id | {
27
31
  id: Id;
28
32
  }, options?: {
29
33
  i18nCustomKey?: I18nKey_1;
30
- i18nValues?: import("vue").ComputedRef<{
31
- [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
32
- }> | (() => {
33
- [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
34
- });
35
- } | undefined) => Commander.Gen<Toast.Toast | I18n | WithToast, Id, I18nKey_1> & Commander.NonGen<Toast.Toast | I18n | WithToast, Id, I18nKey_1>;
36
- 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>) & {
34
+ state?: import("vue").ComputedRef<State> | (() => State);
35
+ } | undefined) => Commander.Gen<Toast.Toast | I18n | WithToast, Id, I18nKey_1> & Commander.NonGen<Toast.Toast | I18n | WithToast, Id, I18nKey_1> & {
36
+ state: import("effect/Context").Tag<`Commander.Command.${Id}.state`, State>;
37
+ };
38
+ wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4, State_1 extends {
39
+ [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
40
+ } = {
41
+ [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
42
+ }, I18nKey_2 extends string = Id>(mutation: (((...args: Args_3) => Effect.Effect<A_1, E_3, R_4>) & {
37
43
  id: Id;
38
44
  }) | {
39
45
  mutate: (...args: Args_3) => Effect.Effect<A_1, E_3, R_4>;
40
46
  id: Id;
41
47
  }, options?: {
42
48
  i18nCustomKey?: I18nKey_2;
43
- i18nValues?: import("vue").ComputedRef<{
44
- [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
45
- }> | (() => {
46
- [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
47
- });
49
+ state?: import("vue").ComputedRef<State_1> | (() => State_1);
48
50
  } | 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>;
49
51
  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>) & {
50
52
  id: Id;
51
53
  }) | {
52
54
  id: Id;
53
55
  mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
54
- }, 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> & {
56
+ }, 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 | `Commander.Command.${Id}.state`>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id, I18nKey_3> & {
55
57
  mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
56
58
  }) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_5>) => Commander.CommandOut<Args_4, A_2, E_4, R_5, Id, I18nKey_3>);
57
59
  _tag: "Commander";
@@ -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,8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