peggyjs / peggy

Peggy: Parser generator for JavaScript
https://peggyjs.org/
MIT License
906 stars 64 forks source link

Errors in types #482

Closed hildjj closed 6 months ago

hildjj commented 6 months ago
peg.d.ts:862:57 - error TS2304: Cannot find name 'an'.

862       library_ref?(node: ast.LibraryReference, ...args: an[]): any;
                                                            ~~

peg.d.ts:1080:25 - error TS2304: Cannot find name 'Expectation'.

1080   peg$maxFailExpected?: Expectation[];
                             ~~~~~~~~~~~