facebook / facebook/flow

Property not found on intersection type

Aperta
#3,952 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.