babel-plugin-react-flow-props-to-prop-types icon indicating copy to clipboard operation
babel-plugin-react-flow-props-to-prop-types copied to clipboard

Implement object type spread (both $Exact and nonexact semantics)

Open rosskevin opened this issue 8 years ago • 3 comments

Object type spread was introduced in Flow 0.42.0

Documentation is not yet published, but the behavior is documented here and this is referenced in the implementation, as use without $Exact is odd - it makes all prop values from the spread optional.

I have mirrored flow behavior, though I expect the default behavior may change. This too is commented in code so we have some sanity to check and change it in the future.

rosskevin avatar Jun 09 '17 19:06 rosskevin

Changes made on this and #2.

rosskevin avatar Jun 12 '17 00:06 rosskevin

Trying to get this rebased, but error stack trace line numbers no longer line up...so it's a bit of a pain.

rosskevin avatar Jul 31 '17 21:07 rosskevin

@thejameskyle this is rebased and good to go.

rosskevin avatar Jul 31 '17 21:07 rosskevin