facebook / facebook/flow

`Function` has no callable signature

Aperta
#3,317 3 commenti 3 reazioni 0 assegnatari Vedi su GitHub
enhancement Typing: completeness
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

`Function.prototype` should be a callable property, currently flow complains that there is no "Callable signature".

The following is valid javascript, thus should not have flow errors:
```javascript
/* @flow */
const noop = Function.prototype;
noop();
```

[flow try](https://flowtype.org/try/#0PQKgBAAgZgNg9gdzCYAoVMCmAXMA7OOABzAF4wAxAVzwGNsBLOPAOiICc5suBPIzANyoCxABQBKAUA)

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.