摘要: 获取长度 length type LengthOfTuple<T extends any[]> = T["length"]; type A = LengthOfTuple<["B", "F", "E"]>; // 3 type B = LengthOfTuple<[]>; // 0 取第一项 Fir 阅读全文
posted @ 2023-04-24 16:02 Echoyya、 阅读(249) 评论(0) 推荐(0) 编辑