EntityProxyServer.ts overview
Since v1.0.0
Exports Grouped by Category
Layers
layerHttpApi
Signature
declare const layerHttpApi: <
ApiId extends string,
Groups extends HttpApiGroup.Any,
ApiE,
ApiR,
Name extends HttpApiGroup.Name<Groups>,
Rpcs extends Rpc.Any
>(
api: HttpApi.HttpApi<ApiId, Groups, ApiE, ApiR>,
name: Name,
entity: Entity.Entity<Rpcs>
) => Layer.Layer<ApiGroup<ApiId, Name>, never, Sharding | Rpc.Context<Rpcs>>
Since v1.0.0
layerRpcHandlers
Signature
declare const layerRpcHandlers: <Rpcs extends Rpc.Any, const Prefix extends string = "">(
entity: Entity.Entity<Rpcs>,
options?: { readonly prefix?: Prefix }
) => Layer.Layer<RpcHandlers<Rpcs, Prefix>, never, Sharding | Rpc.Context<Rpcs>>
Since v1.0.0
utils
RpcHandlers (type alias)
Signature
type RpcHandlers<Rpcs, Prefix> =
Rpcs extends Rpc.Rpc<infer _Tag, infer _Payload, infer _Success, infer _Error, infer _Middleware>
? Rpc.Handler<`${Prefix}${_Tag}`>
: never
Since v1.0.0