ts-gen-types
Generate TypeScript types from other types
Last updated 5 months ago by bengry .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ts-gen-types 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.4                                ...           latest (5 months ago)

8 Versions

  • 1.1.4                                ...           5 months ago
  • 1.1.3                                ...           5 months ago
  • 1.1.2 [deprecated]           ...           5 months ago
  • 1.1.1 [deprecated]           ...           5 months ago
  • 1.1.0 [deprecated]           ...           5 months ago
  • 1.0.2                                ...           8 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 9
Last Day 1
Last Week 8
Last Month 8
Dependencies (5)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |