tools icon indicating copy to clipboard operation
tools copied to clipboard

🐛 Parser: export default function in declare module

Open Boshen opened this issue 3 years ago • 1 comments

Environment information

PlayGround

What happened?

declare module 'x' {
  export default function (option: any): void
}

reports

✖ expected an identifier, an array pattern, or an object pattern but instead found '('

Expected result

It should parse without syntax error

Code of Conduct

  • [X] I agree to follow Rome's Code of Conduct

Boshen avatar Oct 26 '22 05:10 Boshen

Could I try it?

denbezrukov avatar Nov 14 '22 08:11 denbezrukov