Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

g-plane/acorn-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acorn-typescript

This is an Acorn plugin for parsing TypeScript code.

It's still in progress. Don't use it in production.

Usage

import acorn from 'acorn'
import acornTs from 'acorn-typescript'

const parser = acorn.Parser.extend(acornTs)
parser.parse('let a: number')

License

MIT License (c) 2018-present Pig Fang

Releases

No releases published

Packages

No packages published