effect-io-ai

Package: effect
Module: ManagedRuntime

ManagedRuntime.ManagedRuntime.Error

Extracts the layer construction error type of a ManagedRuntime.

When to use

Use to derive the layer construction error type from an existing ManagedRuntime type.

Signature

type Error<T> = [T] extends [ManagedRuntime<infer _R, infer E>] ? E : never

Source

Since v3.4.0