facebook / facebook/flow

Property not found on intersection type

Open
#3,952 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

It is not possible to access certain properties on intersection types if you define a list of keys you want to access.

It works if you add the `string[]` type to the properties list.

Here is an example:
https://flow.org/try/#0PTAEAEDMBsHsHcBQiAmBTAxtAhgJzaAC4CeADgQELYDOaA8gEYBWmhoAvKAN6KiiSxYALlDVCuAJYA7AOYBuRAF8F6LHgIlyoALLFGLDG048+DPCLGTZCxaABkoKrX2sFiAG55QAWz3MRui6GHNy8-IIiAEQCsJEANGFmuFFJoACMkUpuIKAAYgCCAJIAMgDKiBiwUmKgpLiwpNQAqlKaaCghANrRgvGgkUmRALqIdQ3NrWTtAHTUsN5oABSLpACUHAB8Pn5MnaRDq9lgAOp0AEoA0uWV1WxjjQAqUygW4tIynUNdPbFx-YMje7UJ7kFCzeZLFbrdhbXz6PYHBRAA

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.