Package: effect
Module: FileSystem
Creates a FileSystem implementation from a partial implementation.
When to use
Use to build a concrete FileSystem service from platform-specific core
operations while deriving the convenience methods that can be implemented
from them.
Details
This function takes a partial FileSystem implementation and automatically provides
default implementations for exists, readFileString, stream, sink, and
writeFileString methods based on the provided core methods.
See
makeNoop for a testing stub that accepts method overrides without requiring a complete implementationlayerNoop for providing a no-op FileSystem as a Layer in testsSignature
declare const make: (impl: Omit<FileSystem, typeof TypeId | "exists" | "readFileString" | "stream" | "sink" | "writeFileString">) => FileSystem
Since v4.0.0