effect-io-ai

Package: effect
Module: Layer

Layer.fail

Constructs a layer that fails with the specified error.

Signature

declare const fail: <E>(error: E) => Layer<unknown, E>

Source

Since v2.0.0