Function useController

  • useController execute an array of Contoller decorator metadata on a target instance.

    Type Parameters

    • This

      The type of the class the controllers belong in.

    Parameters

    • controllers: Controller<This>[]

      Array of 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