Type Alias WithRequired<T, K>

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

Makes properties with keys assignable to K in T required

Type Parameters

  • T
  • K extends keyof T