厦门暗游网络科技有限公司
  • 首页
  • 关于我们
  • 开发笔记
  • Cocos
  • Unity
  • 读书
  • Privacy
  • StayTab
微信公众号:耿直的IT男阿斌

typescript

A collection of 6 posts

jest

使用jest对TypeScript进行单元测试

如何使用jest对typescript项目进行单元测试呢?

阿斌
typescript

TypeScript如何在模块中优雅地使用全局变量

利用declare关键字可以声明全局变量,而不引入依赖关系,保持了低耦合。

阿斌
开发笔记

#Laya 编译报错:semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.

laya居然不支持typescript的await/async语法?

阿斌
开发笔记

如何忽略不想修改的TypeScript编译错误?

//@ts-ignore解决你的烦恼

阿斌
开发笔记

#Cocos Creator# 序列化自定义类报错:Can not serialize 'xxx' because the specified type is anonymous, please provide a class name

想在Cocos Creator的场景编辑器的使用自定义的ccclass子类,却遇到这个奇葩的错误: Can not serialize 'BalancePlayground.testRulers' because the specified type is anonymous, please provide a class name or set the 'serializable' attribute of 'BalancePlayground.testRulers' to 'false'. 同时,在编辑器的属性检查器里,无法正常显示该类的属性值: 这是为什么呢?

阿斌
开发笔记

#Cocos Creator# TypeScript 如何使用 npm 模块?

重复造轮子是没有意义的,要怎么做才能使用npm的第三方库呢?

阿斌
厦门暗游网络科技有限公司 © 2025 闽ICP备17029130号
Latest Posts Facebook Twitter Ghost
More Indies: Kevin (Game Dev) John Wilson (App Dev)