-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Support implicit declare in Flow #18690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
commit: |
✅ Deploy Preview for prettier ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
e31560e to
3bfae90
Compare
| // @ts-expect-error -- wrong types | ||
| !(node.type === "DeclareFunction" && node.implicitDeclare) && | ||
| // @ts-expect-error -- FIXME | ||
| !(node.type === "DeclareComponent" && node.body === null)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SamChou19815 Add a flag like DeclareFunction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. We will probably just switch to a single declare flag like TS.
Description
Blocked #18663 (comment)Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.