diff --git a/docs/plugins/swagger-client/index.md b/docs/plugins/swagger-client/index.md index 7ca8700190..05825a786e 100644 --- a/docs/plugins/swagger-client/index.md +++ b/docs/plugins/swagger-client/index.md @@ -63,7 +63,7 @@ Name to be used for the `export * as {{exportAs}} from './` Type: `string`
Default: `"{{tag}}Service"` -### client +### client Path to the client that will be used to do the API calls. Relative to the root @@ -74,7 +74,7 @@ Deprecated. Use `clientImportPath` instead. It will be skipped if `clientImportP ### clientImportPath Path to the client import path that will be used to do the API calls. -It will be used as `import { client } from '{{clientImportPath}}'`. +It will be used as `import client from '${clientImportPath}'`. It allow both relative and absolute path. the path will be applied as is, so relative path shoule be based on the file being generated. diff --git a/docs/plugins/swagger-swr.md b/docs/plugins/swagger-swr.md index d2e0779783..3377e64b6e 100644 --- a/docs/plugins/swagger-swr.md +++ b/docs/plugins/swagger-swr.md @@ -62,7 +62,7 @@ Name to be used for the `export * as {{exportAs}} from './` Type: `string`
Default: `"{{tag}}SWRHooks"` -### client +### client Path to the client that will be used to do the API calls. Relative to the root @@ -73,7 +73,7 @@ Deprecated. Use `clientImportPath` instead. It will be skipped if `clientImportP ### clientImportPath Path to the client import path that will be used to do the API calls. -It will be used as `import { client } from '{{clientImportPath}}'`. +It will be used as `import client from '${clientImportPath}'`. It allow both relative and absolute path. the path will be applied as is, so relative path shoule be based on the file being generated. diff --git a/docs/plugins/swagger-tanstack-query.md b/docs/plugins/swagger-tanstack-query.md index 0177500e33..8adda43e72 100644 --- a/docs/plugins/swagger-tanstack-query.md +++ b/docs/plugins/swagger-tanstack-query.md @@ -68,7 +68,7 @@ Name to be used for the `export * as {{exportAs}} from './` Type: `string`
Default: `"{{tag}}Hooks"` -### client +### client Path to the client that will be used to do the API calls. Relative to the root @@ -79,7 +79,7 @@ Deprecated. Use `clientImportPath` instead. It will be skipped if `clientImportP ### clientImportPath Path to the client import path that will be used to do the API calls. -It will be used as `import { client } from '{{clientImportPath}}'`. +It will be used as `import client from '${clientImportPath}'`. It allow both relative and absolute path. the path will be applied as is, so relative path shoule be based on the file being generated. diff --git a/packages/swagger-client/src/types.ts b/packages/swagger-client/src/types.ts index ee248f65f5..443e6d6af9 100644 --- a/packages/swagger-client/src/types.ts +++ b/packages/swagger-client/src/types.ts @@ -61,7 +61,7 @@ export type Options = { client?: string /** * Path to the client import path that will be used to do the API calls. - * It will be used as `import { client } from '{{clientImportPath}}'`. + * It will be used as `import client from '${clientImportPath}'`. * It allow both relative and absolute path. * the path will be applied as is, so relative path shoule be based on the file being generated. * @default '@kubb/swagger-client/client' diff --git a/packages/swagger-swr/src/types.ts b/packages/swagger-swr/src/types.ts index 5d3d3d5d68..bdddcd0463 100644 --- a/packages/swagger-swr/src/types.ts +++ b/packages/swagger-swr/src/types.ts @@ -39,7 +39,7 @@ export type Options = { client?: string /** * Path to the client import path that will be used to do the API calls. - * It will be used as `import { client } from '{{clientImportPath}}'`. + * It will be used as `import client from '${clientImportPath}'`. * It allow both relative and absolute path. * the path will be applied as is, so relative path shoule be based on the file being generated. * @default '@kubb/swagger-client/client' diff --git a/packages/swagger-tanstack-query/src/types.ts b/packages/swagger-tanstack-query/src/types.ts index 097c0aaf17..219e7fb640 100644 --- a/packages/swagger-tanstack-query/src/types.ts +++ b/packages/swagger-tanstack-query/src/types.ts @@ -32,7 +32,7 @@ export type Options = { client?: string /** * Path to the client import path that will be used to do the API calls. - * It will be used as `import { client } from '{{clientImportPath}}'`. + * It will be used as `import client from '${clientImportPath}'`. * It allow both relative and absolute path. * the path will be applied as is, so relative path shoule be based on the file being generated. * @default '@kubb/swagger-client/client'