@findlay-best-wishes/easy-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

EN | 简体中文

Gain information ( such as type or comment ) of some type from typescript project.

Install

npm install @findlay-best-wishes/easy-type

Usage

const { getTypeOption } = require('@findlay-best-wishes/easy-type')

const { Props } = getTypeOption({
  entryFile: 'test.ts',
  typeName: 'Props'
  tsconfig: 'tsconfig'
})

const { name, type, comment } = Props
// gain mutiple type information
const { getTypeOption } = require('@findlay-best-wishes/easy-type')

const { Props, State } = getTypeOption({
  entryFile: 'button.ts',
  typeName: ['Props', 'State']
  tsconfig: 'tsconfig'
})

Readme

Keywords

none

Package Sidebar

Install

npm i @findlay-best-wishes/easy-type

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

38.8 kB

Total Files

33

Last publish

Collaborators

  • findlay-best-wishes