ts-gen-types
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

ts-gen-types

Generate and transform existing TypeScript types.

oclif Version Downloads/week License

Usage

$ npm install -g ts-gen-types
$ ts-gen-types COMMAND
running command...
$ ts-gen-types (-v|--version|version)
ts-gen-types/1.1.4 darwin-x64 node-v10.12.0
$ ts-gen-types --help [COMMAND]
USAGE
  $ ts-gen-types COMMAND
...

Commands

ts-gen-types const-enum-to-enum

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
  --trailingComma=(es5|all|none)  [default: none] Trailing comma

EXAMPLE
  $ ts-gen-types const-enum-to-enum -s <sourceFile> -t <targetFile>

See code: src/commands/const-enum-to-enum.ts

ts-gen-types help [COMMAND]

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

Readme

Keywords

none

Package Sidebar

Install

npm i ts-gen-types

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

12.8 kB

Total Files

12

Last publish

Collaborators

  • bengry