MCPcopy Create free account
hub / github.com/Effect-TS/effect / make

Function make

packages/effect/src/unstable/cluster/Entity.ts:452–462  ·  view source on GitHub ↗
(
  /**
   * The entity type name.
   */
  type: Type,
  /**
   * The schema definition for messages that the entity is capable of
   * processing.
   */
  protocol: Rpcs
)

Source from the content-addressed store, hash-verified

450 * @since 4.0.0
451 */
452export const make = <const Type extends string, Rpcs extends ReadonlyArray<Rpc.Any>>(
453 /**
454 * The entity type name.
455 */
456 type: Type,
457 /**
458 * The schema definition for messages that the entity is capable of
459 * processing.
460 */
461 protocol: Rpcs
462): Entity<Type, Rpcs[number]> => fromRpcGroup(type, RpcGroup.make(...protocol))
463
464/**
465 * Service tag for the entity address currently being processed.

Callers 5

EntityResource.tsFile · 0.70
Runners.tsFile · 0.70
layerWithFunction · 0.70

Calls 2

fromRpcGroupFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected