Universal Robots TypeScript API - v10.12.0
    Preparing search index...

    Type Alias ChildInsertionRule

    ChildInsertionRule: (
        parent: ProgramNode,
        childType: string,
    ) => OptionalPromise<boolean>

    ChildInsertionRule function defines if a given parent can have a child of the given type

    Type Declaration

      • (parent: ProgramNode, childType: string): OptionalPromise<boolean>
      • Parameters

        • parent: ProgramNode

          The programNode that becomes parent, for the newly inserted child, if the operation is allowed

        • childType: string

          Type of node to insert.

        Returns OptionalPromise<boolean>

        true if the insertion operation succeeded