The type of the data that is used to communicate information about the request to estuary-rpc-client or from estuary-rpc-server to the server implementation. This should be kept generic in your extension of the Api type, so that your Meta description
The type of the metadata that is used to describe the endpoint. This should extend SimpleMeta, although for this code it is not strictly necessary
Generated using TypeDoc
An Api type is effecitvely just an arbitrarily nested set of endpoints allowing for nice organization of the interface over which estuary-rpc operates. To start using estuary-rpc, you may first define your own ExampleApi type extending from this Api interface, and then define an exampleApiMetaDefition of type ExampleApi<unknown, CustomMeta> (without a closure as the MetaDefinition is not used as a function). Alternatively, you may just define your exampleApiMetaDefinition and use type inference and ApiTypeOf to deduce your API type from that. That is, you may either explicitly or implicitly extend this Api. From there, on the clientside a call to createApiClient will create an ExampleApi<FetchOpts, Meta>, while on the serverside a call to createApiServer will create an ExampleApi<ApiContext, Meta>.
Example