Interface: RootPath<T>
Path from an object to its root.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends object | Root object type. |
Properties
path
readonly path: Path;
Path from the root to the given target, as a string array. If the target is a root itself then the array will be empty.
pathObjects
readonly pathObjects: readonly unknown[];
Objects in the path, from root (included) until target (included). If the target is a root then only the target will be included.
root
readonly root: T;
Root object.