Generate and transform existing TypeScript types.
$ npm install -g ts-gen-types
$ ts-gen-types COMMAND
running command...
$ ts-gen-types (-v|--version|version)
ts-gen-types/1.1.3 darwin-x64 node-v10.12.0
$ ts-gen-types --help [COMMAND]
USAGE
$ ts-gen-types COMMAND
...
Generate an enum from a const enum
USAGE
$ ts-gen-types const-enum-to-enum
OPTIONS
-h, --help show CLI help
-q, --singleQuote Use single quotes instead of double quotes. Defaults to false.
-s, --sourceFile=sourceFile (required) Source file path
-t, --targetFile=targetFile (required) Target file path
--comment=comment Optional comment to append to the target enum
--sourceName=sourceName Name of the const enum in the source file path. Optional if there's only one
--targetName=targetName Name of the generated enum. Defaults to sourceName
EXAMPLE
$ ts-gen-types const-enum-to-enum -s <sourceFile> -t <targetFile>
See code: src/commands/const-enum-to-enum.ts
display help for ts-gen-types
USAGE
$ ts-gen-types help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help