Reuse flow class declaration for class definition
Offen
- Vorherrschende Sprache
- Rust
- Sterne
- 22.3k
- Forks
- 1.9k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.