facebook / facebook/flow

ElementConfig and destructuring assignment

Open
#5,843 1 comment 0 reactions 0 assignees View on GitHub
Typing: unions/intersections
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

[TRY](https://flow.org/try/#0PTAEAEDMBsHsHcBQBLAtgB1gJwC6gEoCmAhgMY4A0oA3qAMKwawB2hzeAvqJFo6AORYS5fiia5QOAJ7pCNeo0yt2AFRmEqAUWiFUbHA2aRkAc1BcefQcJyjE02aACCAExfIcyFsWgAFXugAzqAAvDSIoKAmvPAAXKDMAK6oAEaEWBQRoOm8WPEpsLA6xMyZHADciIiEAB6YEi6EkMSJ0HgAPFm+8dQcVADqWMTosi4MTMo4arLx40r604TtvgB8VADyiTjoW-6wQfHauvqGxibtg8OjcywL6iugAGTObh5ezD57QYgrABQAlPESlJQg9qFkhDhElhmKBSNBiIFgpcRoQXNkajg2C5gjdJu1NttdgFAmCspEhMxGlhQADwpEGXCWIE8LRoggqAA6blCFnmUKSAAWyECnPQJPJDNIzNZ2SwuX5YV5OCqjIphChMISrWgko4WX1+qAA)

The problem in this line:

```
const { error } = rest
```

Why?) `error` is definitely in `rest`, because OutputProps is superset of AdditionalProps, which have error inside.

PS: I need ElementConfig for defaultProps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.