guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
912 stars 47 forks source link

Add TypeScript interface for Error with idx property #132

Closed justinfagnani closed 8 months ago

justinfagnani commented 1 year ago

It'd be nice to be able to import an type for the error throw here: https://github.com/guybedford/es-module-lexer/blob/main/src/lexer.ts#L172

cc @aomarks