GitShow/sveltejs/acorn-typescript
sveltejs

acorn-typescript

Acorn plugin that parses TypeScript

by sveltejs
Star on GitHubForkWebsitenpm

TypeScript

50 stars16 forks19 contributorsActive · 1d agoSince 2025@sveltejs/acorn-typescript@1.0.13MIT

Meet the team

See all 19 on GitHub →
TyrealHu
TyrealHu172 contributions
dummdidumm
dummdidumm40 contributions
ota-meshi
ota-meshi21 contributions
magic-akari
magic-akari16 contributions
github-actions[bot]Bot
github-actions[bot]13 contributions
ryanatkn
ryanatkn6 contributions
baseballyama
baseballyama2 contributions
Rich-Harris
Rich-Harris2 contributions

Languages

View on GitHub →
TypeScript98.2%
JavaScript1.8%

Commit activity

Last 12 weeks · 25 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · 1 in progress · Last activity 1d ago
See all on GitHub →
JakeChampion
fix: allow as/satisfies expression as left operand of **OpenPR

acorn parses inside , so a following an / expression built in the override was never consumed, causing to be rejected. Handle the trailing there so it parses as , matching and . Closes #45

JakeChampion · 1d ago

Recent fixes

View closed PRs →
JakeChampion
fix: restore scope state after failed speculative parse in tryParseMergedPR

Speculative parses could leak an entered scope onto scopeStack, causing later to fail with "Export 'x' is not defined".

JakeChampion · 1d ago
magic-akari
A conditional expression changes validation of following top-level syntaxClosedIssue

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:

magic-akari · 1d ago
magic-akari
`onToken` output does not match the parsed TypeScript programClosedIssue

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.

magic-akari · 1d ago
Structured data for AI agents

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.

·@ofershap

Replace github.com with gitshow.dev