摘要: function lotteryNum() { return (Math.round(Math.random() * 100) % 58) + 1; } function recordNumber(luckLotteryNumbers: readonly number[], num: number) 阅读全文
posted @ 2022-08-15 19:13 Zhentiw 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Extract is useful for obtaining some sub-part of a type that is assignable to some other type. type FavoriteColors = | "dark sienna" | "van dyke brown 阅读全文
posted @ 2022-08-15 18:53 Zhentiw 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Let’s study a few examples of extends scenarios and see if we can figure out whether it will evaluate to true or false 64 extends number . . . Answer: 阅读全文
posted @ 2022-08-15 01:47 Zhentiw 阅读(15) 评论(0) 推荐(0) 编辑