@kubb/plugin-swr 5.6.0-canary.20261025T201031 → 5.6.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
@@ -34,8 +31,6 @@ type Transformer = (props: {
34
31
  casing: ParamsCasing;
35
32
  variant: KeyVariant;
36
33
  }) => Array<unknown>;
37
- //#endregion
38
- //#region ../../internals/tanstack-query/src/components/MutationKey.d.ts
39
34
  /**
40
35
  * Default `mutationKey` builder. Call it from a custom builder to extend the default key.
41
36
  *
@@ -47,8 +42,6 @@ type Transformer = (props: {
47
42
  * ```
48
43
  */
49
44
  export declare const mutationKeyTransformer: Transformer;
50
- //#endregion
51
- //#region ../../internals/tanstack-query/src/components/QueryKey.d.ts
52
45
  /**
53
46
  * Default `queryKey` builder. Call it from a custom builder to extend the default key.
54
47
  *
@@ -60,8 +53,6 @@ export declare const mutationKeyTransformer: Transformer;
60
53
  * ```
61
54
  */
62
55
  export declare const queryKeyTransformer: Transformer;
63
- //#endregion
64
- //#region src/types.d.ts
65
56
  /**
66
57
  * The concrete resolver type for `@kubb/plugin-swr`.
67
58
  * Extends the base `Resolver` (which provides `default` naming and option helpers, the top-level
@@ -264,8 +255,6 @@ declare global {
264
255
  }
265
256
  }
266
257
  }
267
- //#endregion
268
- //#region src/plugin.d.ts
269
258
  /**
270
259
  * Canonical plugin name for `@kubb/plugin-swr`. Used for driver lookups and cross-plugin
271
260
  * dependency references.
@@ -293,14 +282,12 @@ export declare const pluginSwrName = "plugin-swr";
293
282
  * ```
294
283
  */
295
284
  export declare const pluginSwr: import("kubb/kit").PluginFactory<PluginSwr>;
296
- //#endregion
297
- //#region src/resolvers/resolverSwr.d.ts
298
285
  /**
299
286
  * Default resolver used by `@kubb/plugin-swr`. Decides the names and file paths for every generated
300
287
  * SWR hook (`useFoo`, `useFooMutation`) and its companion helpers (`fooQueryKey`, `fooQueryOptions`,
301
288
  * `fooMutationKey`).
302
289
  *
303
- * Functions and files use the built-in camelCase casing; hooks get the `use` prefix.
290
+ * Functions use safe camelCase identifiers; hooks get the `use` prefix.
304
291
  *
305
292
  * @example Resolve hook and helper names
306
293
  * ```ts
@@ -312,6 +299,5 @@ export declare const pluginSwr: import("kubb/kit").PluginFactory<PluginSwr>;
312
299
  * ```
313
300
  */
314
301
  export declare const resolverSwr: ResolverSwr;
315
- //#endregion
316
302
  export { type PluginSwr, type ResolverSwr, type Transformer, pluginSwr as default };
317
303
  //# 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
@@ -34,8 +31,6 @@ type Transformer = (props: {
34
31
  casing: ParamsCasing;
35
32
  variant: KeyVariant;
36
33
  }) => Array<unknown>;
37
- //#endregion
38
- //#region ../../internals/tanstack-query/src/components/MutationKey.d.ts
39
34
  /**
40
35
  * Default `mutationKey` builder. Call it from a custom builder to extend the default key.
41
36
  *
@@ -47,8 +42,6 @@ type Transformer = (props: {
47
42
  * ```
48
43
  */
49
44
  export declare const mutationKeyTransformer: Transformer;
50
- //#endregion
51
- //#region ../../internals/tanstack-query/src/components/QueryKey.d.ts
52
45
  /**
53
46
  * Default `queryKey` builder. Call it from a custom builder to extend the default key.
54
47
  *
@@ -60,8 +53,6 @@ export declare const mutationKeyTransformer: Transformer;
60
53
  * ```
61
54
  */
62
55
  export declare const queryKeyTransformer: Transformer;
63
- //#endregion
64
- //#region src/types.d.ts
65
56
  /**
66
57
  * The concrete resolver type for `@kubb/plugin-swr`.
67
58
  * Extends the base `Resolver` (which provides `default` naming and option helpers, the top-level
@@ -264,8 +255,6 @@ declare global {
264
255
  }
265
256
  }
266
257
  }
267
- //#endregion
268
- //#region src/plugin.d.ts
269
258
  /**
270
259
  * Canonical plugin name for `@kubb/plugin-swr`. Used for driver lookups and cross-plugin
271
260
  * dependency references.
@@ -293,14 +282,12 @@ export declare const pluginSwrName = "plugin-swr";
293
282
  * ```
294
283
  */
295
284
  export declare const pluginSwr: import("kubb/kit").PluginFactory<PluginSwr>;
296
- //#endregion
297
- //#region src/resolvers/resolverSwr.d.ts
298
285
  /**
299
286
  * Default resolver used by `@kubb/plugin-swr`. Decides the names and file paths for every generated
300
287
  * SWR hook (`useFoo`, `useFooMutation`) and its companion helpers (`fooQueryKey`, `fooQueryOptions`,
301
288
  * `fooMutationKey`).
302
289
  *
303
- * Functions and files use the built-in camelCase casing; hooks get the `use` prefix.
290
+ * Functions use safe camelCase identifiers; hooks get the `use` prefix.
304
291
  *
305
292
  * @example Resolve hook and helper names
306
293
  * ```ts
@@ -312,6 +299,5 @@ export declare const pluginSwr: import("kubb/kit").PluginFactory<PluginSwr>;
312
299
  * ```
313
300
  */
314
301
  export declare const resolverSwr: ResolverSwr;
315
- //#endregion
316
302
  export { type PluginSwr, type ResolverSwr, type Transformer, pluginSwr as default };
317
303
  //# sourceMappingURL=index.d.ts.map