This rule effects failures if next
is called without an argument and the subject's value type is not void
.
In RxJS version 6, the next
method's value
parameter is optional, but a value should always be specified for subjects with non-void
element types.
Examples of incorrect code for this rule:
const subject = new Subject<number>();
subject.next();
Examples of correct code for this rule:
const subject = new Subject<void>();
subject.next();
const subject = new Subject<number>();
subject.next(0);
This rule has no options.