Package: effect
Module: Layer
A no-op type constraint that enforces the error channel of a Layer conforms to
the specified error type E.
Example
import { Layer } from "effect"
// Ensure that the layer does not expose any unhandled errors.
const program = Layer.succeed(MyService, new MyServiceImpl()).pipe(Layer.ensureErrorType<never>())
Signature
declare const ensureErrorType: <E>() => <ROut, E2 extends E, RIn>(layer: Layer<ROut, E2, RIn>) => Layer<ROut, E2, RIn>
Since v3.20.0