@kubb/plugin-react-query 5.0.0-beta.79 → 5.0.0-beta.80

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.ts CHANGED
@@ -476,6 +476,16 @@ type Options = OutputOptions & {
476
476
  * back to the default `resolverReactQuery`.
477
477
  */
478
478
  resolver?: Partial<ResolverReactQuery> & ThisType<ResolverReactQuery>;
479
+ /**
480
+ * Set to `false` to skip generating `use*` hook functions. `queryOptions`,
481
+ * `mutationOptions`, `queryKey`, and `mutationKey` helpers are still emitted.
482
+ * The resulting output uses only `@tanstack/react-query` factory imports
483
+ * (`queryOptions`, `infiniteQueryOptions`, `mutationOptions`) that are
484
+ * adapter-portable across React, Vue, Solid, and Svelte.
485
+ *
486
+ * @default false
487
+ */
488
+ hooks?: boolean;
479
489
  /**
480
490
  * Macros applied to each operation node before printing.
481
491
  */
@@ -510,6 +520,7 @@ type ResolvedOptions = {
510
520
  mutationKey: MutationKey | null;
511
521
  mutation: NonNullable<Required<Mutation>> | false;
512
522
  customOptions: NonNullable<Required<CustomOptions>> | null;
523
+ hooks: boolean;
513
524
  resolver: ResolverReactQuery;
514
525
  };
515
526
  type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, ResolverReactQuery>;