Type alias EndpointFn<Req, Res, Closure>

EndpointFn<Req, Res, Closure>: ((input: Req, closure: Closure) => Promise<Res>)

Type Parameters

Type declaration

    • (input: Req, closure: Closure): Promise<Res>
    • 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

      Parameters

      • input: Req
      • closure: Closure

      Returns Promise<Res>

Generated using TypeDoc