RxJS version: 5.4.3
Code to reproduce:
const subject = new Subject<string>()
subject.next()
Expected behavior:
Compile error
Actual behavior:
Compiles
Additional information:
next()'s argument is typed as optional, which means it allows undefined even if the Subject's type does not. It should only allow T, not T | undefined.