我有打字稿文件 file1.ts
export function Hello(str: string) {
console.log(str);
}
我有文件 index.js
{
require('./some.js');
和 package.json 中的脚本
"run": "node index.js"
如何从ts文件中运行该函数index.js
慕桂英546537
月关宝盒
相关分类