摘要: // 前置参数类型 type A = 'string' | 'boolean' // 类型关联MAP type B = { 'string': string 'boolean': boolean } type C<T extends A[]> = { [I in keyof T]: B[T[I]] 阅读全文
posted @ 2024-03-07 19:32 梦羽微澜 阅读(5) 评论(0) 推荐(0) 编辑