MCPcopy Create free account
hub / github.com/effect-app/libs / make

Function make

repos/effect/packages/effect/src/unstable/cluster/Entity.ts:447–457  ·  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

445 * same tag, the resulting protocol keeps the later definition for that tag.
446 *
447 * @see {@link fromRpcGroup} for creating an entity from an existing `RpcGroup`
448 *
449 * @category constructors
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 */

Callers 7

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

Calls 2

fromRpcGroupFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…