Layer.Layer<Path, never, never>Provides the default Node Path service using the platform's node:path
implementation.
layers
Source repos/effect/packages/platform-node/src/NodePath.ts:221 lines
export const const layer: Layer.Layer<Path>const layer: {
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 default Node Path service using the platform's node:path
implementation.
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<Path> = import NodePathNodePath.layerReferenced by 1 symbols