facebook / facebook/flow

Reuse flow class declaration for class definition

オープン
#3,193 コメント 8 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
22.3k
フォーク
1.9k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi
how can I reuse my class declaration in this case without to copy paste all members in the class definition?

```
declare type A {
a: string;
}

class A extends EventEmitter {

foo() {
this.a // error property not found
}
}
```

I thought flow would recognize that `class` A is an instance of `type` A but it doesn't.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。