TypeScript Parser Contributions

I’ve developed an Acorn TypeScript plugin and am wondering if it’s possible to upstream it to give back to the community.

Some things I’d want to have reviewed by a maintainer:

  1. Add tests (maybe copy Babel’s?)
  2. Clean up the 2 try statements (and inject types on the correct node)

Nice work! Given how quickly TypeScript evolves, and how vaguely it is defined, I don’t really feel attracted to the idea of upstreaming this, because it’d put more of a maintenance burden on us. So for the time being, I think a plugin is the preferred way to distribute this.