Type alias RemoteApiRequestHandler

RemoteApiRequestHandler: ((reply) => RemoteApiCancelRequestHandler | void)

Type declaration

    • (reply): RemoteApiCancelRequestHandler | void
    • Represents a Remote API request handler function. It is provided with a reply callback that must be invoked to send a response back to the lens. The reply callback can be invoked multiple times if needed. Additionally, the handler can return a cancellation callback, which is triggered when the lens cancels the request.

      Parameters

      • reply: ((response) => void)

      Returns RemoteApiCancelRequestHandler | void

Generated using TypeDoc