interface ViewRequestSurface<TInput = never> One view request of a generated client: client.requests.<name>.
Methods
handle
handle(handler: BridgeViewRequestHandler<TInput>): () => void; Registers the handler of this view request for this client, replacing the one registered before (whose signal aborts). Returns the function that unregisters it; it does nothing once another handler replaced this one. A request is never replayed: one raised while no handler is registered is not delivered later.