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
Support as
and satisfies
expressions for Flow
#15130
Conversation
aac618a
to
2815cb1
Compare
Does anyone have an idea why "Prod / Node.js 18 on ubuntu-latest (Full Test) (pull_request)" (and only that) is failing? |
|
The names |
All casts are binary, but you're right it should be |
But there is already a node type called prettier/src/language-js/print/flow.js Line 248 in 24dfe5a
|
You're right, I can call it |
f41977b
to
0f82089
Compare
Sorry for the delay, I went on vacation and when I got back started working on other stuff. |
0f82089
to
5dac05c
Compare
I'm used to using Mercurial every day so forgot to add the files before amending! |
Do we need a release after merge, or we can wait? |
I'm not in a rush with this, you don't need to change your release schedule |
Description
Adds support for printing
as
andsatisfies
expressions in Flow.This is accomplished first by factoring out TypeScript's logic and using/extending that.
Tests are mostly copied from TS's tests. I did a
diff
of Flow's and TS's snapshot file to confirm that that differences were expected (from input change).Checklist
changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨