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/pages/reference/configuration/output.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -386,6 +386,28 @@ Default Value: `en`.
386
386
387
387
Give you the possibility to set the locale for the mock generation. It is used by faker, see the list of available options [here](https://fakerjs.dev/guide/localization.html#available-locales). It should also be strongly typed using `defineConfig`.
388
388
389
+
### docs
390
+
391
+
Type: `Boolean | Object`.
392
+
393
+
Default Value: `false`.
394
+
395
+
Will generate API docs using [TypeDoc](https://typedoc.org/). by default these docs will be in Markdown format.
396
+
397
+
TypeDoc can be configured by passing the [options](https://typedoc.org/options/) to the `docs` object or by creating a config file e.g. `typedoc.config.mjs` in your project root (see the [config docs](https://typedoc.org/options/configuration/#options) for a full list of supported file names) or by passing a config filename to the `configPath` option below.
398
+
399
+
See the TypeDoc [configuration documentation](https://typedoc.org/options/) for more details.
400
+
401
+
The `docs` option can take some properties to customize the generation if you set it to an object. If you set it to `true`, the default options will be used.
402
+
403
+
When no output directory destination is specified in `config`, the file will be output to the `docs` directory by default.
404
+
405
+
#### configPath
406
+
407
+
Type: `String`.
408
+
409
+
Use to specify a TypeDoc config filename. This can be useful if your project already has a TypeDoc config for other docs.
Copy file name to clipboardExpand all lines: packages/core/src/types.ts
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ import type {
12
12
}from'openapi3-ts/oas30';
13
13
// @ts-ignore // FIXME when running `yarn test` getting `orval:test: ../core/src/types.ts(12,34): error TS7016: Could not find a declaration file for module 'swagger2openapi'. '/home/maxim/orval/node_modules/swagger2openapi/index.js' implicitly has an 'any' type.`
14
14
importtypeswagger2openapifrom'swagger2openapi';
15
+
import{TypeDocOptions}from'typedoc';
15
16
16
17
exportinterfaceOptions{
17
18
output?: string|OutputOptions;
@@ -50,6 +51,7 @@ export type NormalizedOutputOptions = {
0 commit comments