Skip to content

Commit 57b82c4

Browse files
authored
Add new ecmaVersion values and 'latest' to types
Aligns types for `ecmaVersion` with current docs and implementation.
1 parent c3a335f commit 57b82c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acorn/dist/acorn.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare namespace acorn {
1212
}
1313

1414
interface Options {
15-
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020
15+
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 'latest'
1616
sourceType?: 'script' | 'module'
1717
onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
1818
onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void

0 commit comments

Comments
 (0)