facebook / facebook/flow

Regression: Unable to override statics of class

Open
#4,953 23 comments 8 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

```js
declare class Foo extends Array{
static bind(): Foo;
}
```

This makes it impossible to provide a flow libdef for Bluebird:

```js
declare class Bluebird$Promise<+R> extends Promise{
static bind(ctx: any): Bluebird$Promise;
}
```

http://bluebirdjs.com/docs/api/promise.bind.html

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.