typescript "Use union type instead of enum" command line option ? #2234
Replies: 1 comment
-
Sorry, my mistake. I thought I was using the latest version of quicktype. --prefer-unions works with the latest version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a command line equivalent to the "Use union type instead of enum" switch on http://quicktype.io ?
Based on the commit associated with that change I tried
--prefer-unions
, but that didn't work; egquicktype -s schema schemas/*.json --prefer-unions -o ../ts/generated/QuickTypeGeneratedTypes.ts
Error: Option parsing failed: Unknown option: --prefer-unions.
this is with [email protected]
Beta Was this translation helpful? Give feedback.
All reactions