- fix: allow type casts during reassignments (
57b6335
)
- fix: ensure scope is entered correctly (
1697562
)
-
fix: allow override modifier in class that extends another class (
cd3843e
) -
fix: avoid validating arrow function parameters too early (
f184d66
) -
fix: handle class/function identifier names inside template literal (
8819aa1
) -
fix: typeParameters->typeArguments in some places to align with TSESTree spec (
bc39dcb
) -
fix: correct end position, remove obsolete index (
f35b64e
)
-
fix: support const modifier in generic type parameters (
0c11e2b
) -
fix: allow declaration merging (
35e1a3b
) -
fix: support type annotation on rest parameters in arrow function (
847d787
) -
fix: support non-null expressions in more places (
6267f0c
)
- fix: parse type assertions (#1)
This project started as a fork of https://github.com/TyrealHu/acorn-typescript
Version 1.0 of @sveltejs/acorn-typescript
has some breaking changes compared to the original acorn-typescript
project:
- Only named export (i.e. you have to do
import { tsPlugin } from '@sveltejs/acorn-typescript';
, a default export is no longer provided) - ESM only (no CJS build)
- JSX parsing is disabled by default now (you can turn it back on by passing
{ jsx: true }
) allowSatisfies
option was removed,satisfies
operator is always parsed nowindex
onloc
was removedtypeParameters
is nowtypeArguments
in some places (likeTSTypeReference
) to align with the TSESTree spec
Changelog of the project this originated from: https://github.com/TyrealHu/acorn-typescript/CHANGELOG.md