Type Alias _Override<$D, $O, $B>

_Override<$D, $O, $B>: $B extends [infer B]
    ? _OLast<$D, $O, B>
    : $B extends [infer B, ...(infer Bs extends ($Branch<any> | unknown)[])]
        ? _OLast<_Override<$D, $O, Bs>, $O, B>
        : never

Type Parameters

  • $D
  • $O extends Record<string, any>
  • $B extends ($Branch<any> | unknown)[]