Type Alias MakeOptional<T, K>

MakeOptional: Omit<T, K> & Partial<Pick<T, K>>

A utility type for modifying certain keys of an object type to be optional.

Type Parameters

  • T
  • K extends keyof T