Skip to content

Commit

Permalink
fix: docs about wrong Badge usage, wrong import line example
Browse files Browse the repository at this point in the history
  • Loading branch information
b6pzeusbc54tvhw5jgpyw8pwz2x6gs committed Oct 18, 2023
1 parent a277ff0 commit ed36922
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/plugins/swagger-client/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Name to be used for the `export * as {{exportAs}} from './`
Type: `string` <br/>
Default: `"{{tag}}Service"`

### client <Badge type="error" text="deprecated" />
### client <Badge type="danger" text="deprecated" />
Path to the client that will be used to do the API calls.
Relative to the root

Expand All @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/swagger-swr.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Name to be used for the `export * as {{exportAs}} from './`
Type: `string` <br/>
Default: `"{{tag}}SWRHooks"`

### client <Badge type="error" text="deprecated" />
### client <Badge type="danger" text="deprecated" />
Path to the client that will be used to do the API calls.
Relative to the root

Expand All @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/swagger-tanstack-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Name to be used for the `export * as {{exportAs}} from './`
Type: `string` <br/>
Default: `"{{tag}}Hooks"`

### client <Badge type="error" text="deprecated" />
### client <Badge type="danger" text="deprecated" />
Path to the client that will be used to do the API calls.
Relative to the root

Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion packages/swagger-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/swagger-swr/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/swagger-tanstack-query/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ed36922

Please sign in to comment.