Class default

Constructors

Properties

Constructors

  • Create a new instance of a Treecle context with the given root node and configuration.

    Parameters

    • root: Node

      The root node of the tree

    • config: {
          getChildProperties: ((node) => string[]);
          isNode: ((node) => boolean);
      }

      The configuration object for this context

      • getChildProperties: ((node) => string[])
          • (node): string[]
          • Parameters

            • node: Node

            Returns string[]

      • isNode: ((node) => boolean)
          • (node): boolean
          • Parameters

            • node: Node

            Returns boolean

    • Rest ...args: any

    Returns default

    A new instance of a Treecle context

Properties

root: Node

Generated using TypeDoc