Last 12 weeks · 25 commits
2 of 6 standards met
Parse each example with and . Reproduction Local export Expected: the module parses successfully. Actual: Top-level return Expected: parsing throws because is outside a function. Actual: the module is accepted. Top-level await Expected: the module parses successfully because top-level is valid in modules. Actual:
Reproduction Expected Each token is reported once, using the token type selected for the returned TypeScript AST. The type parameter at offsets 11–12 is reported as . Actual The callback first reports and tokens for offsets 10–12, then reports the same source range again as TypeScript tokens. The token stream therefore contains extra tokens that do not match the returned AST.
Repository: sveltejs/acorn-typescript. Description: Acorn plugin that parses TypeScript Stars: 50, Forks: 16. Primary language: TypeScript. Languages: TypeScript (98.2%), JavaScript (1.8%). License: MIT. Homepage: https://www.npmjs.com/package/@sveltejs/acorn-typescript?activeTab=readme Latest release: @sveltejs/acorn-typescript@1.0.13 (1d ago). Open PRs: 1, open issues: 5. Last activity: 1d ago. Community health: 50%. Top contributors: TyrealHu, dummdidumm, ota-meshi, magic-akari, github-actions[bot], ryanatkn, baseballyama, Rich-Harris, leonidaz, benmccann and others.