面试题答案一键面试type FilterByProperty<T, K extends keyof any> = { [P in keyof T as T[P] extends string ? P : never]: T[P]; };