File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ const fs = require("fs");
90
90
/* NOTE: all fields are optional expect one of `output`, `url`, `spec` */
91
91
generateApi ({
92
92
name: " MySuperbApi.ts" ,
93
+ // set to `false` to prevent the tool from writing to disk
93
94
output: path .resolve (process .cwd (), " ./src/__generated__" ),
94
95
url: ' http://api.com/swagger.json' ,
95
96
input: path .resolve (process .cwd (), ' ./foo/swagger.json' ),
Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ interface GenerateApiParamsBase {
5
5
name ?: string ;
6
6
7
7
/**
8
- * path to folder where will been located the created api module
8
+ * path to folder where will been located the created api module.
9
+ *
10
+ * may set to `false` to skip writing content to disk. in this case,
11
+ * you may access the `files` on the return value.
9
12
*/
10
- output ?: string ;
13
+ output ?: string | false ;
11
14
12
15
/**
13
16
* path to folder containing templates (default: ./src/templates)
You can’t perform that action at this time.
0 commit comments