Type Alias Optional<T, P>

Optional<T, P>: Omit<T, P> & Partial<Pick<T, P>>

turn properties P of interface T into optional

Type Parameters

  • T
  • P extends keyof T