Hyperlinkv0.8.0-beta.28

Layer

Layer.LayerUnifyinterfaceeffect/Layer.ts:74
LayerUnify<A>

Type-level hook that allows Layer values to participate in Unify inference.

Details

This is used by Effect's pipe and unification machinery to preserve the provided services, error, and requirements of a Layer.

models
Source effect/Layer.ts:748 lines
export interface LayerUnify<A extends { [Unify.typeSymbol]?: any }> {
  Layer?: () => A[Unify.typeSymbol] extends Layer<any, any, any> | infer _ ? Layer<
      Success<Extract<A[Unify.typeSymbol], Any>>,
      Error<Extract<A[Unify.typeSymbol], Any>>,
      Services<Extract<A[Unify.typeSymbol], Any>>
    >
    : never
}
Referenced by 1 symbols