type Part<T,K,Maybe>
Determines the result of getting the property/index K
from type T
, taking into account that the value may be optional.
Definition
type Part<T, K, Maybe extends boolean> = IsArray<T> extends true ?
Path.Internal.MaybeValue
<T[K & keyof T],
Tuple.IsTuple
<T> extends true ? Maybe : true> :
Path.Internal.MaybeValue
<T[K & keyof T], Maybe>;