Interface RootPath<T>

Path from an object to its root.

T Root object type.

interface RootPath<T> {
    path: Path;
    pathObjects: readonly unknown[];
    root: T;
}

Type Parameters

  • T extends object

Properties

Properties

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 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: T

Root object.