Function useController

  • useController.

    Type Parameters

    • This

    Parameters

    • controllers: Controller<This>[]

      Controller decorator metadata.

    • targetInstance: This

      Current state of the object the Controller is defined in, that will be passed to the Controller function.

    • cursor: Cursor
    • reader: ControllerReader

      Function defining how to read the next chunk of data.

    Returns any