( /** * The entity type name. */ type: Type, /** * The schema definition for messages that the entity is capable of * processing. */ protocol: Rpcs )
| 388 | * @category constructors |
| 389 | */ |
| 390 | export const make = <const Type extends string, Rpcs extends ReadonlyArray<Rpc.Any>>( |
| 391 | /** |
| 392 | * The entity type name. |
| 393 | */ |
| 394 | type: Type, |
| 395 | /** |
| 396 | * The schema definition for messages that the entity is capable of |
| 397 | * processing. |
| 398 | */ |
| 399 | protocol: Rpcs |
| 400 | ): Entity<Type, Rpcs[number]> => fromRpcGroup(type, RpcGroup.make(...protocol)) |
| 401 | |
| 402 | /** |
| 403 | * A Context.Tag to access the current entity address. |
no test coverage detected