You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-explicit-generics.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
# Disallow unnecessary explicit generic type arguments (`rxjs-x/no-explicit-generics`)
2
2
3
-
💼 This rule is enabled in the 🔒 `strict` config.
4
-
5
3
<!-- end auto-generated rule header -->
6
4
7
5
This rule prevents the use of explicit type arguments when the type arguments can be inferred.
@@ -21,3 +19,7 @@ Examples of **correct** code for this rule:
21
19
import { BehaviorSubject } from"rxjs";
22
20
const subject =newBehaviorSubject(42);
23
21
```
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