@zvs001/ts-extractor
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Library is designed to extract only needed typings from project.

For example: export all database model typing as an external library.

Usage

Cmd usage:

ts-extract-typings --config ./typings/core/ts-extract-config.ts

Programmatic usage:

import extractor from "@zvs001/ts-extractor"
extractor.extract(config)

Config File example:

// ts-extract-config.ts
import { Config } from "@zvs001/ts-extractor"

const config: Config = {
  cwdDir: './models',
  outputDir: './typings/core',
  match: '*',
  interfaces: {
    ignore: [
      /Payload$/,
    ],
  },
}

export default config

Readme

Keywords

none

Package Sidebar

Install

npm i @zvs001/ts-extractor

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

24.2 kB

Total Files

17

Last publish

Collaborators

  • zvs001