@toktokhan-dev/cli-plugin-gen-api-react-query 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toktokhan-dev/cli-plugin-gen-api-react-query",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -75,10 +75,7 @@
75
75
 
76
76
  <% if (isQuery) { %>
77
77
  export const use<%~ classNameCase(functionName) %>Query = <
78
- TData = InfiniteData<
79
- RequestFnReturn<typeof <%= apiInstanceName %>.<%~ functionName %>>,
80
- Parameter<typeof <%= apiInstanceName %>.<%~ functionName %>>
81
- >,
78
+ TData = RequestFnReturn<typeof <%= apiInstanceName %>.<%~ functionName %>>,
82
79
  >(
83
80
  <%~ conditionalParamsText %>: QueryHookParams<typeof <%= apiInstanceName %>.<%~ functionName %>,
84
81
  <% if (isAxiosInstance) { %>
@@ -126,7 +123,10 @@
126
123
 
127
124
  */
128
125
  export const use<%~ classNameCase(functionName) %>InfiniteQuery = <
129
- TData = RequestFnReturn<typeof <%= apiInstanceName %>.<%~ functionName %>>,
126
+ TData = InfiniteData<
127
+ RequestFnReturn<typeof <%= apiInstanceName %>.<%~ functionName %>>,
128
+ Parameter<typeof <%= apiInstanceName %>.<%~ functionName %>>
129
+ >,
130
130
  >(
131
131
  <%~ conditionalParamsText %>: InfiniteQueryHookParams<typeof <%= apiInstanceName %>.<%~ functionName %>,
132
132
  <% if (isAxiosInstance) { %>