0.0.1 • Published 5 years ago

ts-baseline v0.0.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

How to use it:

npm install ts-baseline

1. generate types baseline

import { walkTypes } from 'ts-baseline'

const baseline = walkTypes(`const a: number = 1;`)

result:

const a: number = 1;
>a : number
>1 : 1

2. generate symbols baseline

import { walkSymbols } from 'ts-baseline'

const baseline = walkSymbols(`const a: number = 1;`)

result:

const a: number = 1;
>a : Symbol(a, Decl(temporary.ts, 0, 5))