【发布时间】:2015-08-17 01:13:38
【问题描述】:
我想在我的TypeScript 代码中使用一个外部模块,但它失败了。具体来说,我想在我的 TypeScript 脚本中使用引用 external.d.ts 文件中的方法。
我的代码是:
module test {
//This is not working. I want to know the syntax to refer to express here.
private express: typeof express = require("express");
export testserver
{
constructor(private app:express.Application)
{
//Can not find express symbol
}
}
【问题讨论】:
-
“失败”是什么意思?
标签: module typescript external