facebook / facebook/flow

`Function` has no callable signature

Open
#3,317 3 comments 3 reactions 0 assignees View on GitHub
enhancement Typing: completeness
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

`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)

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.