BranchDataSegmentstype
{
readonly [K in DataKey<T>]: T[K] extends Data ? readonly [K] | readonly [K, ...BranchDataSegments<T[K]>] : readonly [K];
}[DataKey<T>]| Type | |
|---|---|
DataKey | Helper type to get the key for a data object prop. |
K | |
Data | Data object — a plain object with string keys and unknown values. |
BranchDataSegments | Typed path tuple for every branch node of a data object (including intermediate objects). i.e. BranchPath<{ a: number, b: { c: string } }> produces readonly ["a"] | readonly ["b"] | readonly ["b", "c"] |
Typed path tuple for every branch node of a data object (including intermediate objects).
i.e. BranchPath<{ a: number, b: { c: string } }> produces readonly ["a"] | readonly ["b"] | readonly ["b", "c"]