@tefe/typescript-type-tester
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

@tefe/typescript-type-tester

用 typescript 解析 ts 文件并返回错误信息和打印某系相关信息

Usage

npm i -D @tefe/typescript-type-tester
import typescriptTypeTester from '@tefe/typescript-type-tester';

const { ['a.ts']: errorStringArrA, ['b.ts']: errorStringArrB } = typescriptTypeTester(
  ['a.ts', 'b.tsx'],
  '/User/skipper/Documenets/directory'
);

例如 error.ts:

打印 jest snapshot 信息:

Source

Readme

Keywords

Package Sidebar

Install

npm i @tefe/typescript-type-tester

Weekly Downloads

2

Version

0.0.0

License

MIT

Unpacked Size

6.61 kB

Total Files

8

Last publish

Collaborators

  • funn1est
  • chshouyu
  • yangqianjun