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>,
Type extends string,
Rpcs extends Rpc.Any
>(
api: HttpApi.HttpApi<ApiId, Groups, ApiE, ApiR>,
name: Name,
entity: Entity.Entity<Type, Rpcs>
) => Layer.Layer<ApiGroup<ApiId, Name>, never, Sharding | Rpc.Context<Rpcs>>
Since v1.0.0
layerRpcHandlers
Signature
declare const layerRpcHandlers: <const Type extends string, Rpcs extends Rpc.Any>(
entity: Entity.Entity<Type, Rpcs>
) => Layer.Layer<RpcHandlers<Rpcs, Type>, 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