@kubb/plugin-vue-query 5.7.0-canary.20261025T201031 → 5.7.0

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/dist/index.d.cts CHANGED
@@ -2,7 +2,6 @@ import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, R
2
2
  import "@kubb/plugin-zod";
3
3
  import "@kubb/plugin-ts";
4
4
  import "kubb/jsx";
5
- //#region ../../internals/client/src/resolveClient.d.ts
6
5
  /**
7
6
  * The client selector accepted by a consumer's `client` option. Each calls a registered contract
8
7
  * client plugin.
@@ -17,8 +16,6 @@ type ResolvedContractClient = {
17
16
  kind: 'contract';
18
17
  pluginName: string;
19
18
  };
20
- //#endregion
21
- //#region ../../internals/tanstack-query/src/types.d.ts
22
19
  type ParamsCasing = 'camelcase' | undefined;
23
20
  /**
24
21
  * The hook a key is built for. Plain and suspense queries can share a key, but an infinite query
@@ -137,8 +134,6 @@ type Infinite = {
137
134
  getPreviousPageParam?: string | PageParamFn | null;
138
135
  };
139
136
  type PageParamFn<TPage = any, TParam = any> = (page: TPage, allPages: Array<TPage>, pageParam: TParam, allPageParams: Array<TParam>) => TParam | undefined | null;
140
- //#endregion
141
- //#region ../../internals/tanstack-query/src/components/MutationKey.d.ts
142
137
  /**
143
138
  * Default `mutationKey` builder. Call it from a custom builder to extend the default key.
144
139
  *
@@ -150,8 +145,6 @@ type PageParamFn<TPage = any, TParam = any> = (page: TPage, allPages: Array<TPag
150
145
  * ```
151
146
  */
152
147
  export declare const mutationKeyTransformer: Transformer;
153
- //#endregion
154
- //#region ../../internals/tanstack-query/src/components/QueryKey.d.ts
155
148
  /**
156
149
  * Default `queryKey` builder. Call it from a custom builder to extend the default key.
157
150
  *
@@ -163,8 +156,6 @@ export declare const mutationKeyTransformer: Transformer;
163
156
  * ```
164
157
  */
165
158
  export declare const queryKeyTransformer: Transformer;
166
- //#endregion
167
- //#region ../../internals/tanstack-query/src/utils.d.ts
168
159
  /**
169
160
  * Helper to define a typed page param function for `infinite.getNextPageParam` or
170
161
  * `infinite.getPreviousPageParam`. Serializes the function to a string for inlining in generated code.
@@ -174,8 +165,6 @@ export declare const queryKeyTransformer: Transformer;
174
165
  * the config file.
175
166
  */
176
167
  export declare function definePageParam<TPage = any, TParam = any>(fn: PageParamFn<TPage, TParam>): string;
177
- //#endregion
178
- //#region src/types.d.ts
179
168
  /**
180
169
  * Resolver for Vue Query that provides naming methods for hook functions.
181
170
  */
@@ -369,8 +358,6 @@ declare global {
369
358
  }
370
359
  }
371
360
  }
372
- //#endregion
373
- //#region src/plugin.d.ts
374
361
  /**
375
362
  * Canonical plugin name for `@kubb/plugin-vue-query`. Used for driver lookups
376
363
  * and cross-plugin dependency references.
@@ -401,14 +388,12 @@ export declare const pluginVueQueryName = "plugin-vue-query";
401
388
  * ```
402
389
  */
403
390
  export declare const pluginVueQuery: import("kubb/kit").PluginFactory<PluginVueQuery>;
404
- //#endregion
405
- //#region src/resolvers/resolverVueQuery.d.ts
406
391
  /**
407
392
  * Default resolver used by `@kubb/plugin-vue-query`. Decides the names and
408
393
  * file paths for every generated TanStack Query composable (`useFoo`,
409
394
  * `useFooInfinite`) and its companion helpers.
410
395
  *
411
- * The `default` helpers are supplied by `createResolver`. Functions and files use camelCase;
396
+ * The `default` helpers are supplied by `createResolver`. Functions use safe camelCase identifiers;
412
397
  * composables get the `use` prefix. Operation-specific naming is grouped under the `query`,
413
398
  * `infiniteQuery`, and `mutation` namespaces.
414
399
  *
@@ -422,6 +407,5 @@ export declare const pluginVueQuery: import("kubb/kit").PluginFactory<PluginVueQ
422
407
  * ```
423
408
  */
424
409
  export declare const resolverVueQuery: ResolverVueQuery;
425
- //#endregion
426
410
  export { type PageParamFn, type PluginVueQuery, type ResolverVueQuery, type Transformer, pluginVueQuery as default };
427
411
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import { Exclude, Group, Include, Output, OutputOptions, Override, PluginType, R
2
2
  import "@kubb/plugin-zod";
3
3
  import "@kubb/plugin-ts";
4
4
  import "kubb/jsx";
5
- //#region ../../internals/client/src/resolveClient.d.ts
6
5
  /**
7
6
  * The client selector accepted by a consumer's `client` option. Each calls a registered contract
8
7
  * client plugin.
@@ -17,8 +16,6 @@ type ResolvedContractClient = {
17
16
  kind: 'contract';
18
17
  pluginName: string;
19
18
  };
20
- //#endregion
21
- //#region ../../internals/tanstack-query/src/types.d.ts
22
19
  type ParamsCasing = 'camelcase' | undefined;
23
20
  /**
24
21
  * The hook a key is built for. Plain and suspense queries can share a key, but an infinite query
@@ -137,8 +134,6 @@ type Infinite = {
137
134
  getPreviousPageParam?: string | PageParamFn | null;
138
135
  };
139
136
  type PageParamFn<TPage = any, TParam = any> = (page: TPage, allPages: Array<TPage>, pageParam: TParam, allPageParams: Array<TParam>) => TParam | undefined | null;
140
- //#endregion
141
- //#region ../../internals/tanstack-query/src/components/MutationKey.d.ts
142
137
  /**
143
138
  * Default `mutationKey` builder. Call it from a custom builder to extend the default key.
144
139
  *
@@ -150,8 +145,6 @@ type PageParamFn<TPage = any, TParam = any> = (page: TPage, allPages: Array<TPag
150
145
  * ```
151
146
  */
152
147
  export declare const mutationKeyTransformer: Transformer;
153
- //#endregion
154
- //#region ../../internals/tanstack-query/src/components/QueryKey.d.ts
155
148
  /**
156
149
  * Default `queryKey` builder. Call it from a custom builder to extend the default key.
157
150
  *
@@ -163,8 +156,6 @@ export declare const mutationKeyTransformer: Transformer;
163
156
  * ```
164
157
  */
165
158
  export declare const queryKeyTransformer: Transformer;
166
- //#endregion
167
- //#region ../../internals/tanstack-query/src/utils.d.ts
168
159
  /**
169
160
  * Helper to define a typed page param function for `infinite.getNextPageParam` or
170
161
  * `infinite.getPreviousPageParam`. Serializes the function to a string for inlining in generated code.
@@ -174,8 +165,6 @@ export declare const queryKeyTransformer: Transformer;
174
165
  * the config file.
175
166
  */
176
167
  export declare function definePageParam<TPage = any, TParam = any>(fn: PageParamFn<TPage, TParam>): string;
177
- //#endregion
178
- //#region src/types.d.ts
179
168
  /**
180
169
  * Resolver for Vue Query that provides naming methods for hook functions.
181
170
  */
@@ -369,8 +358,6 @@ declare global {
369
358
  }
370
359
  }
371
360
  }
372
- //#endregion
373
- //#region src/plugin.d.ts
374
361
  /**
375
362
  * Canonical plugin name for `@kubb/plugin-vue-query`. Used for driver lookups
376
363
  * and cross-plugin dependency references.
@@ -401,14 +388,12 @@ export declare const pluginVueQueryName = "plugin-vue-query";
401
388
  * ```
402
389
  */
403
390
  export declare const pluginVueQuery: import("kubb/kit").PluginFactory<PluginVueQuery>;
404
- //#endregion
405
- //#region src/resolvers/resolverVueQuery.d.ts
406
391
  /**
407
392
  * Default resolver used by `@kubb/plugin-vue-query`. Decides the names and
408
393
  * file paths for every generated TanStack Query composable (`useFoo`,
409
394
  * `useFooInfinite`) and its companion helpers.
410
395
  *
411
- * The `default` helpers are supplied by `createResolver`. Functions and files use camelCase;
396
+ * The `default` helpers are supplied by `createResolver`. Functions use safe camelCase identifiers;
412
397
  * composables get the `use` prefix. Operation-specific naming is grouped under the `query`,
413
398
  * `infiniteQuery`, and `mutation` namespaces.
414
399
  *
@@ -422,6 +407,5 @@ export declare const pluginVueQuery: import("kubb/kit").PluginFactory<PluginVueQ
422
407
  * ```
423
408
  */
424
409
  export declare const resolverVueQuery: ResolverVueQuery;
425
- //#endregion
426
410
  export { type PageParamFn, type PluginVueQuery, type ResolverVueQuery, type Transformer, pluginVueQuery as default };
427
411
  //# sourceMappingURL=index.d.ts.map