const result = File.File.pipe(
Effect.flatMap(({ allowOnlyImage }) => allowOnlyImage),
Effect.provide(
Layer.succeed(
File.File,
File.File.of({
/// I want to define 1 function not all
allowOnlyImage: ...,
})
)
)
);
const result = File.File.pipe(
Effect.flatMap(({ allowOnlyImage }) => allowOnlyImage),
Effect.provide(
Layer.succeed(
File.File,
File.File.of({
/// I want to define 1 function not all
allowOnlyImage: ...,
})
)
)
);