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

1.1.2 • Public • Published

NPM Version CI codecov Dependency Status Dev Dependency Status

ts-generate

CLI to generate TypeScript interfaces from source files.

Table of Contents

Features

  • 💪 Generate TypeScript files (obviously).
  • 🚀 Configure output to match your project structure.

Installation

npm install -g ts-generate

Usage

ts-generate --help

class-to-interface [glob]

Generate interfaces from existing TypeScript classes

ts-generate class-to-interface src/entities/*.ts

Options:

Option Type Description Default
--prefix string Interface name prefix. n/a
--suffix string Interface name suffix. n/a
--fileNameCasing string Output file name casing. n/a
--outDir string Redirect output structure to the directory. n/a

Development

Clone the repo and run the following commands in the ts-generate directory:

npm install
npm link
npm run build

Package Sidebar

Install

npm i ts-generate

Weekly Downloads

2

Version

1.1.2

License

MIT

Unpacked Size

24.3 kB

Total Files

13

Last publish

Collaborators

  • justinlettau