Layer.Layer<Stdio, never, never>Provides the Stdio service backed by the current process arguments,
stdin, stdout, and stderr streams.
layers
Source repos/effect/packages/platform-node/src/NodeStdio.ts:221 lines
export const const layer: Layer.Layer<Stdio>const layer: {
build: (memoMap: MemoMap, scope: Scope.Scope) => Effect<Context.Context<Stdio>, never, never>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
}
Provides the Stdio service backed by the current process arguments,
stdin, stdout, and stderr streams.
layer: import LayerLayer.interface Layer<in ROut, out E = never, out RIn = never>A Layer describes how to build one or more services for dependency injection.
When to use
Use to model construction of application services for dependency injection,
especially when services have dependencies, can fail during construction, or
need scoped setup and release.
Details
A Layer<ROut, E, RIn> represents ROut as the services this layer
provides, E as the possible errors during layer construction, and RIn as
the services this layer requires as dependencies.
Layer<Stdio> = import NodeStdioNodeStdio.layerReferenced by 1 symbols