Layer.Layer<Path, never, never>Provides the Path service using Node's POSIX path implementation,
regardless of the host platform.
layers
Source repos/effect/packages/platform-node/src/NodePath.ts:311 lines
export const const layerPosix: Layer.Layer<Path>const layerPosix: {
build: (memoMap: MemoMap, scope: Scope.Scope) => Effect<Context.Context<Path>, 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 Path service using Node's POSIX path implementation,
regardless of the host platform.
layerPosix: 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<Path> = import NodePathNodePath.layerPosix