effect-io-ai

Package: effect
Module: Layer

Layer.service

Constructs a layer that accesses and returns the specified service from the context.

Signature

declare const service: <I, S>(tag: Context.Tag<I, S>) => Layer<I, never, I>

Source

Since v2.0.0