Type Alias WithRequired<T, K>

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

Make a single property of an object required

Type Parameters

  • T
  • K extends keyof T