Type alias PulseCallback<Params>

PulseCallback<Params>: ((task?, ...params) => any)

Type definition for the callback function of a PulseTask.

Type Parameters

  • Params extends any[]

    The types of the parameters that the callback function accepts.

Type declaration

    • (task?, ...params): any
    • Parameters

      • Optional task: PulseTask<Params>

        The task that the callback is associated with.

      • Rest ...params: Params

        The parameters for the callback function.

      Returns any

Returns

The return value of the callback function.