My approach to importing expressjs looks like this:
import { Request, Response, Application, Router } from 'express';
const app: Application = require('express')();
In my typings.json file:
"express": "registry:npm/express#4.14.0+20160925001530",
When I use app.close()
, I encounter the following error:
[ts] Property 'close' does not exist on type 'Application'.
How should I go about solving this issue?
Where should I report this potential bug (if it is indeed a bug)?
Am I the only one facing challenges with TypeScript typings?