You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/guides/cli-options.mdx
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ Initial page value to infinite query. The default value is `1`.
27
27
28
28
## Client Options
29
29
30
-
Due to the generated clients (Under the `openapi/requests` directory) being based on Hey API, you can pass some options to the Hey API client generator.
30
+
The generated clients (under the `openapi/requests` directory) are produced by `@hey-api/openapi-ts` using its plugins system. The CLI options below are mapped to the corresponding plugin configurations.
31
31
32
-
You can find what options are passed to the Hey API client generator in the [generate](https://github.com/7nohe/openapi-react-query-codegen/blob/main/src/generate.mts) function.
32
+
You can see the current configuration in the [generate](https://github.com/7nohe/openapi-react-query-codegen/blob/main/src/generate.mts) function.
33
33
34
34
### -c, --client \<value\>
35
35
@@ -43,15 +43,15 @@ More details about the clients can be found in [Hey API Documentation](https://h
43
43
44
44
### --format \<value\>
45
45
46
-
Process output folder with formatter? The default value is `false`.
46
+
Process the generated queries output folder (`openapi/queries`) with a formatter. The `openapi/requests` directory generated by `@hey-api/openapi-ts` is not affected by this option. The default value is `false`.
47
47
The available options are:
48
48
49
49
-`biome`
50
50
-`prettier`
51
51
52
52
### --lint \<value\>
53
53
54
-
Process output folder with linter? The default value is `false`.
54
+
Process the generated queries output folder (`openapi/queries`) with a linter. The `openapi/requests` directory generated by `@hey-api/openapi-ts` is not affected by this option. The default value is `false`.
55
55
The available options are:
56
56
57
57
-`biome`
@@ -71,19 +71,23 @@ The available options are:
71
71
72
72
### --useDateType
73
73
74
+
> **Deprecated:** This option is currently accepted but has no effect. It will be removed in a future version.
75
+
74
76
Use Date type instead of string for date. The default value is `false`.
75
77
76
78
### --debug
77
79
80
+
> **Deprecated:** This option is currently accepted but has no effect. It will be removed in a future version.
81
+
78
82
Run in debug mode? The default value is `false`.
79
83
80
84
### --noSchemas
81
85
82
86
Disable generating JSON schemas. The default value is `false`.
83
87
84
-
### --schemaTypes\<value\>
88
+
### --schemaType\<value\>
85
89
86
-
Type of JSON schema. The default value is `json`.
90
+
Type of JSON schema. Only applies when `--noSchemas` is not set. The default value is `json`.
Copy file name to clipboardExpand all lines: docs/src/content/docs/guides/usage.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ function App() {
23
23
exportdefaultApp;
24
24
```
25
25
26
-
Optionally, you can also use the pure ts client in `openapi/requests/services.gen.ts`to customize your query.
26
+
Optionally, you can also use the pure TypeScript client to customize your query. The SDK functions are defined in `openapi/requests/sdk.gen.ts`and are also available via the backward-compatible `openapi/requests/services.gen.ts` shim.
0 commit comments