Skip to content

JS: support additional Flow syntax: ... in object types - #2444

Merged
semmle-qlci merged 1 commit into
github:rc/1.23from
esbena:js/flow-spread-prop-types
Nov 26, 2019
Merged

JS: support additional Flow syntax: ... in object types#2444
semmle-qlci merged 1 commit into
github:rc/1.23from
esbena:js/flow-spread-prop-types

Conversation

@esbena

@esbena esbena commented Nov 26, 2019

Copy link
Copy Markdown
Contributor

Flow now(?) allows type D = { d: D, ... }, optionally with a trailing comma or semicolon after the three dots. We previously expected type to follow the three dots.

The amount of FP fixes we get for this merits a hotfix for the 1.23 release: https://git.semmle.com/esben/dist-compare-reports/tree/js/flow-spread-prop-types_1574775153102.

The two first new syntax errors were presumably previously hidden by the FP syntax errors.
The latter new syntax error is simply due to the trailing semicolon, the latest version of this PR now supports the trailing semicolon as well.

@esbena esbena added this to the 1.23 milestone Nov 26, 2019
@esbena
esbena requested a review from max-schaefer November 26, 2019 14:30
@esbena
esbena requested a review from a team as a code owner November 26, 2019 14:30
@semmle-qlci
semmle-qlci merged commit 380a5fc into github:rc/1.23 Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants