TypeScript
共8篇TypeScript needs to support circular references between classes in separate files. #20361
循环引用:https://github.com/Microsoft/TypeScript/issues/20361...
can only be default-imported using the 'esModuleInterop' flag
就是commonjs模块和es6模块的导出导入问题,有些模块用commonjs模块导出,但是我们用es6模块引入就会出问题https://www.cnblogs.com/xym4869/p/13294...
Cannot redeclare block-scoped variable 'name'
在默认状态下,typescript将DOMtypings作为全局的运行环境,所以当我们声明name时,与DOM中的全局window对象下的name属性出现了重名https://www.jianshu....
Property '...' has no initializer and is not definitely assigned in the constructor
tsconfig.json添加:"strictPropertyInitialization":falsehttps://stackoverflow.com/questions/49699067/pro...
Argument of type '{ recursive: boolean; }' is not assignable to parameter of type 'boolean'
node版本的@type太低了,升级就行npminstall@types/node-D...
Property '…' has no initializer and is not definitely assigned in the constructor
ts版本不对https://stackoverflow.com/questions/49699067/property-has-no-initializer-and-is-not-definitely...

在ts中使用mocha
测试是编程中非常重要的一个环节,很多时候不进行测试就不知道程序是否正常,mocha是一个非常好的js测试库.我们来介绍下如何使用mocha来测试ts.ts介绍与安装ts全称是typescript,它的...