Type Alias WithPartial<Source, Keys>

WithPartial<Source, Keys>: {
    [K in Exclude<keyof Source, Keys>]: Source[K]
} & {
    [K in Extract<keyof Source, Keys>]?: Source[K]
}

Represents a type that adds the optional modifier to the keys passed.

Type Parameters

  • Source
  • Keys extends keyof Source