Package: effect
Module: Layer
Extracts the error type (E) from a Layer type.
When to use
Use to derive a layer construction error type for helper types, wrappers, or APIs that preserve a layer failure channel.
See
Success for extracting the services provided by the same LayerServices for extracting the dependency requirements of the same LayerSignature
type Error<T> = T extends Layer<infer _ROut, infer _E, infer _RIn> ? _E : never
Since v2.0.0