I\'m currently working on a project with some legacy javascript. The application does not include a module loader, it just puts everything as a global into the window object. To
Create a global declaration for Rx which is the type of the RxJS exports, like so:
Rx
import * as RxJS from "rxjs"; declare global { const Rx: typeof RxJS; } export {};
Save it to a file (e.g. global.d.ts) and then add that to the include array of tsconfig.json.
global.d.ts
include
tsconfig.json