generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: more documentation for client and ts plugin
- Loading branch information
1 parent
1dcfa40
commit ddc5573
Showing
29 changed files
with
486 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
::: code-group | ||
```typescript [all] | ||
export * from "./gen/petService.ts" | ||
``` | ||
```typescript [named] | ||
export { PetService } from "./gen/petService.ts" | ||
``` | ||
```typescript [false] | ||
``` | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Array containing exclude parameters to exclude/skip tags/operations/methods/paths. | ||
|
||
| | | | ||
|----------:|:-----------------| | ||
| Type: | `Array<Exclude>` | | ||
| Required: | `false` | | ||
|
||
|
||
```typescript [Exclude] | ||
export type Exclude = { | ||
type: 'tag' | 'operationId' | 'path' | 'method' | ||
pattern: string | RegExp | ||
} | ||
``` | ||
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Grouping makes it possible to combine files in a folder based on specific `type`. | ||
|
||
Imagine you have the following setup: | ||
|
||
```typescript | ||
group: { | ||
type: 'tag', | ||
name({ group }){ | ||
return `${group}Controller` | ||
} | ||
} | ||
``` | ||
That will create a structure like this: | ||
``` | ||
. | ||
├── src/ | ||
│ └── petController/ | ||
│ │ ├── addPet.ts | ||
│ │ └── getPet.ts | ||
│ └── storeController/ | ||
│ ├── createStore.ts | ||
│ └── getStoreById.ts | ||
├── petStore.yaml | ||
├── kubb.config.ts | ||
└── package.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- `'tag'`: Use of operation.getTags().at(0)?.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Array containing include parameters to include tags/operations/methods/paths. | ||
|
||
| | | | ||
|----------:|:-----------------| | ||
| Type: | `Array<Include>` | | ||
| Required: | `false` | | ||
|
||
```typescript [Include] | ||
export type Include = { | ||
type: 'tag' | 'operationId' | 'path' | 'method' | ||
pattern: string | RegExp | ||
} | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Array containing override parameters to override `options` based on tags/operations/methods/paths. | ||
|
||
| | | | ||
|----------:|:------------------| | ||
| Type: | `Array<Override>` | | ||
| Required: | `false` | | ||
|
||
|
||
```typescript [Override] | ||
export type Override = { | ||
type: 'tag' | 'operationId' | 'path' | 'method' | ||
pattern: string | RegExp | ||
options: PluginOptions | ||
} | ||
``` |
Empty file.
Oops, something went wrong.