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

Function make

packages/effect/src/Context.ts:724–727  ·  view source on GitHub ↗
(
  key: Key<I, S>,
  service: Types.NoInfer<S>
)

Source from the content-addressed store, hash-verified

722 * @since 2.0.0
723 */
724export const make = <I, S>(
725 key: Key<I, S>,
726 service: Types.NoInfer<S>
727): Context<I> => makeUnsafe(new Map([[key.key, service]]))
728
729/**
730 * Adds a service to a given `Context`.

Callers 1

contextFunction · 0.70

Calls 1

makeUnsafeFunction · 0.70

Tested by

no test coverage detected