Type Alias Require<T, P>

Require<T, P>: Omit<T, P> & Required<Pick<T, P>>

turn optional properties P of interface T into required

Type Parameters

  • T
  • P extends keyof T