随笔分类 -  typescript

摘要:记入每一期我会用到的功能 : v4.3 1. getter setter 的类型可以不一样咯, 这个困扰很久了. (interface, object, class 都可以这样用) class Thing { #size = 0; get size(): number { return this.# 阅读全文
posted @ 2021-04-04 12:14 兴杰 阅读(261) 评论(0) 推荐(0) 编辑
摘要:由于 typescript 越来越复杂. 所以特意开多一个篇幅来记入一些比较难的, 和一些到了一定程度需要知道的基础. 主要参考 https://basarat.gitbook.io/typescript/ 高级书 https://jkchao.github.io/typescript-book-c 阅读全文
posted @ 2021-03-05 18:25 兴杰 阅读(707) 评论(0) 推荐(0) 编辑
摘要:更新 : 2019-07-11 "emitDecoratorMetadata": true 这个是 typescript 配合 metadata 的功能, 能过返回 类型, 比如 string, boolean 等. 不过也不是很准, 比如 string | null 这样它就 gg 了 然后它还有 阅读全文
posted @ 2016-12-20 22:38 兴杰 阅读(1572) 评论(0) 推荐(0) 编辑
摘要:更新: 2021-03-05 高手进修篇 https://basarat.gitbook.io/typescript/ 高级书 https://jkchao.github.io/typescript-book-chinese/ 高级书中文版 https://zhuanlan.zhihu.com/p/ 阅读全文
posted @ 2016-10-31 21:28 兴杰 阅读(1999) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示