@jiway/firestorm-core - v1.1.1
    Preparing search index...

    Interface IResolutionNode

    Node for the resolution tree

    interface IResolutionNode {
        isLeaf: boolean;
        segment: string;
        getChild(segment: string): IResolutionNode | null;
        getOrCreateChild(segment: string): IResolutionNode;
    }

    Implemented by

    Index

    Properties

    isLeaf: boolean

    Whether or not this node has child nodes

    segment: string

    Segment of the path directly reaching this node

    Methods

    • Gets the child node accessed with the segment given.

      Parameters

      • segment: string

        Segment to reach the child node

      Returns IResolutionNode | null

      The child node if it exists or null.

    • Gets the child node accessed with the segment given or creates it if missing.

      Parameters

      • segment: string

        Segment to reach the child node

      Returns IResolutionNode

      The child node