Skip to content

Commit 07fe538

Browse files
docs(no-explicit-generics): add known union problem
1 parent ff68d57 commit 07fe538

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/rules/no-explicit-generics.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ Examples of **correct** code for this rule:
1919
import { BehaviorSubject } from "rxjs";
2020
const subject = new BehaviorSubject(42);
2121
```
22+
23+
## Known problems
24+
25+
- ([#77](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/issues/77)) Type unions cause false positives e.g. `new BehaviorSubject<number | null>(null)` will be incorrectly caught by this rule.

0 commit comments

Comments
 (0)