Documentation
    Preparing search index...

    Type Alias IGraphEventEntityNode<Id, Type, NodeProps>

    IGraphEventEntityNode: IGraphBaseEntityNode<Id, Type, NodeProps> & EventEmitter<
        GraphNodeEventMapping<IGraphBaseEntityNode<Id, Type, NodeProps>>,
    >

    A node that can emit events. It is a subclass of IGraphBaseEntityNode and adds the ability to emit events.

    Type Parameters

    • Id extends string
    • Type extends number

      The type of the node. It should be a number.

    • NodeProps extends Record<string, unknown>

      The properties of the node. It should be an object with string keys and unknown values.

    class NodeJSNode extends EventEmitter<GraphNodeEventMapping> implements IGraphEventEntityNode<typeof GraphTypeEnum.NodeJS, {version: string}> {}
    

    v0.1.0

    IGraphBaseEntityNode for a node that does not emit events.