Consider this basic node+ts code:
import * as express from "express";
function doStuff(app: express.Application) {
if (!(app instanceof express.Application)) throw new TypeError();
// etc...
}
VSCode shows me this error for ...instanceof express.Application...
:
[ts] Property 'Application' does not exist on type 'typeof e'. [2339]
What am I doing wrong?