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

Function layerConfig

packages/platform/node/src/NodeRedis.ts:145–152  ·  view source on GitHub ↗
(
  options: Config.Wrap<NodeRedisClientOptions>
)

Source from the content-addressed store, hash-verified

143export const layerConfig: (
144 options: Config.Wrap<NodeRedisClientOptions>
145) => Layer.Layer<Redis.Redis | NodeRedis, Redis.RedisError | Config.ConfigError> = (
146 options: Config.Wrap<NodeRedisClientOptions>
147): Layer.Layer<Redis.Redis | NodeRedis, Redis.RedisError | Config.ConfigError> =>
148 Layer.effectContext(
149 Config.unwrap(options).pipe(
150 Effect.flatMap(make)
151 )
152 )

Callers

nothing calls this directly

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected