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