RequireSelected<T, K>: T & {
    [P in K]-?: T[P]
}

Utility type to mark selected properties as required.

Type Parameters

  • T
  • K extends keyof T = keyof T