mobx-keystone

    Interface RootPath<T>

    Path from an object to its root.

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

    Type Parameters

    • T extends object

      Root object type.

    Index

    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.

    MMNEPVFCICPMFPCPTTAAATR