Skip to content
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

Flow: add support for inexact tuple types #16271

Merged
merged 1 commit into from May 11, 2024

Conversation

gkz
Copy link
Contributor

@gkz gkz commented May 9, 2024

Description

Inexact tuple types are like inexact object types - they have a trailing ... in their element list, e.g. type T = [number, ...].

If you have an idea of a better way to add support for this within print/array.js let me know.

Checklist

  • I’ve added tests to confirm my change works.
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@gkz gkz force-pushed the flow-inexact-tuples branch 2 times, most recently from ef78bf9 to 0365ae4 Compare May 9, 2024 20:18
@gkz gkz changed the title Add support for Flow's inexact tuple types Flow: add support for inexact tuple types May 10, 2024
@fisker fisker merged commit 5a51577 into prettier:main May 11, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants