Without<T, U>: {
    [P in Exclude<keyof T, keyof U>]?: never
}

Mark some properties which only the former including as optional and set the value to never

Type Parameters

  • T
  • U

Generated using TypeDoc v0.25.12