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

Interface LayerMap

repos/effect/packages/effect/src/LayerMap.ts:69–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 *
68 * return { development, production }
69 * })
70 *
71 * await Effect.runPromise(Effect.scoped(program)) // => { development: "development: SELECT 1", production: "production: SELECT 1" }
72 * ```
73 *
74 * @category models
75 * @since 3.14.0
76 */
77export interface LayerMap<in out K, in out I, in out E = never> {
78 readonly [TypeId]: typeof TypeId
79
80 /**
81 * The internal RcMap that stores the resources.
82 */
83 readonly rcMap: RcMap.RcMap<K, Context.Context<I>, E>
84
85 /**
86 * Retrieves a Layer for the resources associated with the key.
87 */
88 get(key: K): Layer.Layer<I, E>
89
90 /**
91 * Retrieves the context associated with the key.
92 */
93 contextEffect(key: K): Effect.Effect<Context.Context<I>, E, Scope.Scope>
94

Callers 18

sql-store.test.tsFile · 0.65
GetThingFunction · 0.65
effectFunction · 0.65
AllowAnonymousClass · 0.65
RequireRolesClass · 0.65
TestClass · 0.65
LayerMap.test.tsFile · 0.80
ServiceFunction · 0.80
invalidateAndAwaitFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…