effect-io-ai

Package: effect
Module: Layer

Layer.sync

Lazily constructs a layer from the specified value.

Signature

declare const sync: { <I, S>(tag: Context.Tag<I, S>): (evaluate: LazyArg<Types.NoInfer<S>>) => Layer<I>; <I, S>(tag: Context.Tag<I, S>, evaluate: LazyArg<Types.NoInfer<S>>): Layer<I>; }

Source

Since v2.0.0