【发布时间】:2012-10-07 14:15:39
【问题描述】:
是否可以在 TypeScript 中使用 JavaScript 库?
例如我想在 TypeScript 中使用 Raphael 并将 JS 文件添加到我的 /scripts folder 并添加到 _references.js。
但是当我想在我的 TS 文件中声明时:
var r = Raphael(10,50,640,480);
Intellisense 总是说:
Raphael does not exist in the current scope.
TS 文件无法编译。
【问题讨论】:
标签: javascript visual-studio-2012 intellisense typescript