@navios/react-query 0.5.0 → 0.5.1

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.
@@ -393,7 +393,7 @@ export interface ClientInstance {
393
393
  context: Context,
394
394
  ) => void | Promise<void>
395
395
  }): ((
396
- params: UrlHasParams<Url> extends true ? UrlParams<Url> : {},
396
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
397
397
  ) => UseMutationResult<
398
398
  Result,
399
399
  Error,
@@ -437,7 +437,7 @@ export interface ClientInstance {
437
437
  context: Context,
438
438
  ) => void | Promise<void>
439
439
  }): ((
440
- params: UrlHasParams<Url> extends true ? UrlParams<Url> : {},
440
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
441
441
  ) => UseMutationResult<
442
442
  Result,
443
443
  Error,
@@ -511,7 +511,7 @@ export interface ClientInstance {
511
511
  context: Context,
512
512
  ) => void | Promise<void>
513
513
  }): ((
514
- params: UrlHasParams<Url> extends true ? UrlParams<Url> : {},
514
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
515
515
  ) => UseMutationResult<
516
516
  Result,
517
517
  Error,
@@ -686,7 +686,7 @@ export interface ClientInstance {
686
686
  ) => void | Promise<void>
687
687
  },
688
688
  ): ((
689
- params: Util_FlatObject<MutationArgs<Url, RequestSchema, QuerySchema>>,
689
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
690
690
  ) => UseMutationResult<
691
691
  Result,
692
692
  Error,
@@ -732,7 +732,7 @@ export interface ClientInstance {
732
732
  ) => void | Promise<void>
733
733
  },
734
734
  ): ((
735
- params: Util_FlatObject<MutationArgs<Url, RequestSchema, undefined>>,
735
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
736
736
  ) => UseMutationResult<
737
737
  Result,
738
738
  Error,
@@ -780,9 +780,7 @@ export interface ClientInstance {
780
780
  context: Context,
781
781
  ) => void | Promise<void>
782
782
  },
783
- ): ((
784
- params: Util_FlatObject<MutationArgs<Url, RequestSchema, QuerySchema>>,
785
- ) => UseMutationResult<
783
+ ): (() => UseMutationResult<
786
784
  Result,
787
785
  Error,
788
786
  MutationArgs<Url, RequestSchema, QuerySchema>
@@ -823,9 +821,7 @@ export interface ClientInstance {
823
821
  context: Context,
824
822
  ) => void | Promise<void>
825
823
  },
826
- ): ((
827
- params: Util_FlatObject<MutationArgs<Url, RequestSchema, undefined>>,
828
- ) => UseMutationResult<
824
+ ): (() => UseMutationResult<
829
825
  Result,
830
826
  Error,
831
827
  MutationArgs<Url, RequestSchema, undefined>
@@ -866,9 +862,7 @@ export interface ClientInstance {
866
862
  context: Context,
867
863
  ) => void | Promise<void>
868
864
  },
869
- ): ((
870
- params: Util_FlatObject<MutationArgs<Url, undefined, QuerySchema>>,
871
- ) => UseMutationResult<
865
+ ): (() => UseMutationResult<
872
866
  Result,
873
867
  Error,
874
868
  MutationArgs<Url, undefined, QuerySchema>
@@ -906,7 +900,7 @@ export interface ClientInstance {
906
900
  ) => void | Promise<void>
907
901
  },
908
902
  ): ((
909
- params: Util_FlatObject<MutationArgs<Url, undefined, undefined>>,
903
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
910
904
  ) => UseMutationResult<
911
905
  Result,
912
906
  Error,
@@ -943,9 +937,7 @@ export interface ClientInstance {
943
937
  context: Context,
944
938
  ) => void | Promise<void>
945
939
  },
946
- ): ((
947
- params: Util_FlatObject<MutationArgs<Url, undefined, QuerySchema>>,
948
- ) => UseMutationResult<
940
+ ): (() => UseMutationResult<
949
941
  Result,
950
942
  Error,
951
943
  MutationArgs<Url, undefined, QuerySchema>
@@ -979,9 +971,7 @@ export interface ClientInstance {
979
971
  context: Context,
980
972
  ) => void | Promise<void>
981
973
  },
982
- ): ((
983
- params: Util_FlatObject<MutationArgs<Url, undefined, undefined>>,
984
- ) => UseMutationResult<
974
+ ): (() => UseMutationResult<
985
975
  Result,
986
976
  Error,
987
977
  MutationArgs<Url, undefined, undefined>
@@ -1135,7 +1125,7 @@ export interface ClientInstance {
1135
1125
  context: Context,
1136
1126
  ) => void | Promise<void>
1137
1127
  }): ((
1138
- params: UrlHasParams<Url> extends true ? UrlParams<Url> : {},
1128
+ params: UrlHasParams<Url> extends true ? { urlParams: UrlParams<Url> } : {},
1139
1129
  ) => UseMutationResult<
1140
1130
  Result,
1141
1131
  Error,