npm install ts-baseline
import { walkTypes } from 'ts-baseline'
const baseline = walkTypes(`const a: number = 1;`)
result:
const a: number = 1;
>a : number
>1 : 1
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))