Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 Parser: export default function in declare module #3485

Closed
1 task done
Boshen opened this issue Oct 26, 2022 · 1 comment · Fixed by #3775
Closed
1 task done

🐛 Parser: export default function in declare module #3485

Boshen opened this issue Oct 26, 2022 · 1 comment · Fixed by #3775
Assignees
Labels
A-Parser Area: parser S-Bug: confirmed Status: report has been confirmed as a valid bug

Comments

@Boshen
Copy link
Contributor

Boshen commented Oct 26, 2022

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

  • I agree to follow Rome's Code of Conduct
@MichaReiser MichaReiser added S-Bug: confirmed Status: report has been confirmed as a valid bug A-Parser Area: parser labels Oct 26, 2022
@denbezrukov
Copy link
Contributor

Could I try it?

@ematipico ematipico added this to the 11.0.0 milestone Nov 14, 2022
@MichaReiser MichaReiser moved this to Done in Rome 2022 Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Parser Area: parser S-Bug: confirmed Status: report has been confirmed as a valid bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants