Pick<T, K>: {
    [P in K]: T[P]
}

From T, pick a set of properties whose keys are in the union K

类型参数

  • T
  • K extends keyof T