Typescript 不包括外部脚本

Typescript 不包括外部脚本,typescript,Typescript,我在使用typescript时遇到了这个问题 在我的文件中,我从以下内容开始: /// <reference path="jquery.d.ts" /> /// <reference path="../../js/lib/Wf.Ajax.Client.js"/> declare var $; module Wf{ export module utilities{ export class CodesList{ priva

我在使用typescript时遇到了这个问题

在我的文件中,我从以下内容开始:

/// <reference path="jquery.d.ts" />
/// <reference path="../../js/lib/Wf.Ajax.Client.js"/>

   declare var $;
    module Wf{
     export module utilities{
      export class CodesList{
       private client;
        constructor(){
         this.client = new Wf.Ajax.Client();
        }
      }
     }
    }
//
/// 
申报var$;
模块Wf{
导出模块实用程序{
导出类代码列表{
私人客户;
构造函数(){
this.client=new Wf.Ajax.client();
}
}
}
}
这给了我错误
未解析变量ajax


有人知道我如何解决这个问题吗?

您需要手动包括外部JavaScript库,可以通过
脚本
标记或一些模块加载程序(如requireJS)来实现

///可能重复的