@hey-api/openapi-ts 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/index.js +1 -0
- package/dist/node/index.d.ts +5 -0
- package/dist/node/index.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -189,6 +189,7 @@ $ openapi-ts --help
|
|
|
189
189
|
--postfixModels Model name postfix
|
|
190
190
|
--request <value> Path to custom request file
|
|
191
191
|
--useDateType <value> Output Date instead of string for the format "date-time" in the models (default: false)
|
|
192
|
+
--useLegacyEnums Generate Typescript enum definitions (default: false)
|
|
192
193
|
-h, --help display help for command
|
|
193
194
|
```
|
|
194
195
|
|
package/bin/index.js
CHANGED
|
@@ -36,6 +36,7 @@ const params = program
|
|
|
36
36
|
.option('--request <value>', 'Path to custom request file')
|
|
37
37
|
.option('--write', 'Write files to disk? (used for testing)')
|
|
38
38
|
.option('--no-write', 'Skip writing files to disk (used for testing)')
|
|
39
|
+
.option('--useLegacyEnums', 'Generate Typescript enum definitions')
|
|
39
40
|
.parse(process.argv)
|
|
40
41
|
.opts();
|
|
41
42
|
|
package/dist/node/index.d.ts
CHANGED
|
@@ -187,6 +187,11 @@ interface UserConfig {
|
|
|
187
187
|
* @default true
|
|
188
188
|
*/
|
|
189
189
|
useOptions?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Generate Typescript enum definitions
|
|
192
|
+
* @default false
|
|
193
|
+
*/
|
|
194
|
+
useLegacyEnums?: boolean;
|
|
190
195
|
/**
|
|
191
196
|
* Write the files to disk (true or false)
|
|
192
197
|
* @default true
|