Package: effect
Module: Layer
A no-op type constraint that enforces the success channel of a Layer conforms to
the specified success type ROut.
Example
import { Layer } from "effect"
// Ensure that the layer produces the expected services.
const program = Layer.succeed(MyService, new MyServiceImpl()).pipe(Layer.ensureSuccessType<MyService>())
Signature
declare const ensureSuccessType: <ROut>() => <ROut2 extends ROut, E, RIn>(layer: Layer<ROut2, E, RIn>) => Layer<ROut2, E, RIn>
Since v3.20.0