Type Alias WithRequired<T, K>

WithRequired<T, K>: Omit<T, K> & Required<Pick<T, K>>

Constructs a type consisting of some properties of T set to required.

Type Parameters

  • T
  • K extends keyof T