Skip to content

A tools for generate typescript types and symbols

License

Notifications You must be signed in to change notification settings

ts-upgrade-bot/ts-baseline

 
 

Repository files navigation

ts-baseline

A tools for generate typescript types and symbols

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))

About

A tools for generate typescript types and symbols

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.7%
  • JavaScript 15.3%