effect-io-ai

Package: effect
Module: Layer

Layer.Success

Extracts the service output type (ROut) from a Layer type.

When to use

Use to derive the services provided by an existing or generic Layer without restating its ROut type parameter.

See

Signature

type Success<T> = T extends Layer<infer _ROut, infer _E, infer _RIn> ? _ROut : never

Source

Since v2.0.0