Function onGraphTypeRegistered

  • Decorates the class target with a lamba that is called when the type is first registered in the graph.

    Parameters

    • onRegistered: ((graph: Writable<GraphType>) => void)

      Function to be called when the graph type was registered the first time.

    Returns ((target: any) => void)

      • (target): void
      • Parameters

        • target: any

        Returns void