The type of the data that defines the response
In the clientside instantiation of an endpoint, the closure is used to pass additional information (such as a definition of timeout to use) to estuary-rpc-client (the closure here is an instance of ClientClosure), while on the serverside the closure is used to let estuary-rpc-server pass more information to your endpoint definition (the closure here is an instance of ApiContext). In many cases this will not be necessary, but the additional level of control can be useful.
Estuary is built around asynchronous function calls - invoking them from the client and defining them on the server. Each function call has both a request type and a closure value relating to the transport of the data, and returns a response type. Streaming data is treated a bit differently
Generated using TypeDoc
The type of the data that defines the request