Skip to content

bengry/ts-gen-types

Repository files navigation

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.3 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

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

About

Generate TypeScript types from other types

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published