amilajack / amilajack/eslint-plugin-flowtype-errors

Report error which Flow does not report

オープン
#71 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
question waiting-for-response
主要言語
JavaScript
スター
402
フォーク
23
PR マージ指標
30日以内にマージされた PR はありません

説明

This use case is where, in C/C++, a forward declaration would be needed.

`A.js`:
```js
// @flow

import B from './B';

export default class A {
a() { return new B(this); }
}
```

`B.js`:
```js
// @flow

import type A from './A';

export default class B {
a: A;

constructor(a: A) {
this.a = a;
}
}
```

Flow says `No errors!` but `flowtype-errors/show-errors` reports the following in `A.js`:
```
6:23 A: This type is incompatible with the expected param type of A. See ./B.js:8
```

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

このリポジトリのコントリビューションガイドは索引されていません

評価

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

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

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