© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Effect's Approach to Runtime-Specific APIs and Wrappers - Effect Community
EC
Effect Community
•
10mo ago
•
4 replies
Jaga Santagostino
Effect's Approach to Runtime-Specific APIs and Wrappers
I see FileSystem exposes readDirectory as a wrapper for fs
.readdir in
@effect
/platform but it only allow a subset of arguments
I believe is because passing withFileTypes
: true changes the return type from string
[
] to a nodejs specific fs
.Dirent
What is the general Effect philosophy when it comes to runtime specific api
? To create wrappers in userland
?
https://github.com/Effect-TS/effect/blob/main/packages/platform/src/FileSystem.ts#L137
https://github.com/Effect-TS/effect/blob/main/packages/platform/src/FileSystem.ts#L381
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Implementing APIs Piecewise with Effect's HttpApiBuilder
EC
Effect Community / platform
7mo ago
Testing Strategy for Http APIs with Effect and Mock Layers
EC
Effect Community / platform
6mo ago
Organizing APIs and Route Definitions with Platform in Effect Typescript
EC
Effect Community / platform
13mo ago
Using HttpApi to Model and Validate External APIs
EC
Effect Community / platform
13mo ago