手写Pick更新于 2025年04月08日,星期二,05:54阅读 1 次被问到怎么实现一个ts的Pick,突然卡壳,就回家练练手。 type MyPick<T, Key extends keyof T> = { [P in Key]: T[P] }