mobx-keystone

    Function assertIsTreeNode

    • Asserts a given object is now a tree node, or throws otherwise.

      Parameters

      • value: unknown

        Value to check.

      • argName: string = "argument"

        Argument name, part of the thrown error description.

      Returns asserts value is object

    MMNEPVFCICPMFPCPTTAAATR