guybedford / es-module-lexer

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

Invalid 'parse' function return type declared #96

Closed breminnyi closed 2 years ago

breminnyi commented 2 years ago

Hi, according to the official typescript doc, only types should be specified while declaring tuples. Could you, please, fix the declaration file? Currently typescript fails to compile my project because of this.

Thanks in advance, Bohdan.

breminnyi commented 2 years ago

Okay, looks like I figured out why my build fails. It is a named tuple, which was introduced in typescript v4.0.0, while I'm standing on v3.9.7.

Sorry for disturbing.