This is an Acorn plugin for parsing TypeScript code.
It's still in progress. Don't use it in production.
import acorn from 'acorn'
import acornTs from 'acorn-typescript'
const parser = acorn.Parser.extend(acornTs)
parser.parse('let a: number')
MIT License (c) 2018-present Pig Fang