MCPcopy Index your code
hub / github.com/Effect-TS/effect / layerWith

Function layerWith

packages/cluster/src/SqlMessageStorage.ts:605–610  ·  view source on GitHub ↗
(options: {
  readonly prefix?: string | undefined
})

Source from the content-addressed store, hash-verified

603 * @category Layers
604 */
605export const layerWith = (options: {
606 readonly prefix?: string | undefined
607}): Layer.Layer<MessageStorage.MessageStorage, never, SqlClient.SqlClient | ShardingConfig> =>
608 Layer.scoped(MessageStorage.MessageStorage, make(options)).pipe(
609 Layer.provide(Snowflake.layerGenerator)
610 )
611
612// -------------------------------------------------------------------------------------------------
613// internal

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
pipeMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected