Skip to main content

Interface: RootPath<T>

Path from an object to its root.

Type Parameters​

Type ParameterDescription
T extends objectRoot 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.