属性 'close' 在类型 'Application' 上不存在
Property 'close' does not exist on type 'Application'
我是这样导入 expressjs 的:
import { Request, Response, Application, Router } from 'express';
const app: Application = require('express')();
并在 typings.json 中:
"express": "registry:npm/express#4.14.0+20160925001530",
当我输入 app.close()
时,我得到:
[ts] Property 'close' does not exist on type 'Application'.
我该如何解决?
我可以在哪里举报? (如果是bug)
我是唯一一个在打字稿输入方面苦苦挣扎的人吗?
我是这样导入 expressjs 的:
import { Request, Response, Application, Router } from 'express';
const app: Application = require('express')();
并在 typings.json 中:
"express": "registry:npm/express#4.14.0+20160925001530",
当我输入 app.close()
时,我得到:
[ts] Property 'close' does not exist on type 'Application'.
我该如何解决?
我可以在哪里举报? (如果是bug)
我是唯一一个在打字稿输入方面苦苦挣扎的人吗?