Open
Description
I found this while updating another project from 5.5.* to 7.2.0. Basically, this doesn't work properly:
import { fromEvent } from 'rxjs';
declare const document: Document; // or just use document, duh
const result = fromEvent(document, 'click', true);
// Fails on two levels: 1 for `document` being invalid type, the other for `true` instead of `{ useCapture: true }`.