将Typescript转换为Javascript

将Typescript转换为Javascript,javascript,typescript,Javascript,Typescript,我们正在将现有的Javascript转换为Typescript 当Typescript代码被编译成Javascript时,有一个扩展方法调用。但是uu扩展没有函数定义。因此,将错误作为uu扩展为未定义。我相信会在Javascript文件中创建扩展 为了在已编译的Javascript中获得uu extends函数,我们应该做哪些配置更改 请给我一些建议和帮助 tsconfig.json { "compilerOptions": { "target": "es5", "out

我们正在将现有的Javascript转换为Typescript

当Typescript代码被编译成Javascript时,有一个扩展方法调用。但是uu扩展没有函数定义。因此,将错误作为uu扩展为未定义。我相信会在Javascript文件中创建扩展

为了在已编译的Javascript中获得uu extends函数,我们应该做哪些配置更改

请给我一些建议和帮助

tsconfig.json

{
  "compilerOptions": { 
    "target": "es5", 
    "outDir": "../app/scripts/",
    "rootDir": "./", 
    "watch": false, 
    "removeComments": true, 
    "module": "amd", 
    "noImplicitAny": true,
    "noEmitHelpers": true
  }
}

基于从tsconfig.json文件中删除
noEmitHelpers
选项或自己提供扩展方法。

您可以发布tsconfig.json文件吗?{“编译器选项”:{“目标”:“es5”,“outDir”:../app/scripts/”,“rootDir”:“/”,“监视”:false,“removeComments”:true,“模块”:“amd”,“noImplicitAny”:true,“noEmitHelpers”:true}