随笔分类 -  Typescript

TypeScript 版本相关
摘要:TypeScript 1.3 元组类型 // Declare a tuple type var x: [string, number]; // 初始化 x = ["hello", 10]; // ok // 错误的初始化 x = [10, "hello"]; // Error TypeScript 阅读全文

posted @ 2019-03-28 13:51 void87 阅读(425) 评论(0) 推荐(0)

design_patterns_in_typescript 学习
摘要:https://github.com/torokmark/design_patterns_in_typescript Creational Singleton [A class of which only a single instance can exist.] class GameMain{ c 阅读全文

posted @ 2018-07-20 15:42 void87 阅读(147) 评论(0) 推荐(0)

导航