© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Understanding Type Behavior with Effect.Effect<void> vs. void - Effect Community
EC
Effect Community
•
4mo ago
•
2 replies
Kam
Understanding Type Behavior with Effect.Effect<void> vs. void
Is there any reason why there is no type error on testFn1 and testFn2
?
It seems I can return any type of Effect in a function that is supposed to have return type
Effect.Effect<void>
Effect.Effect<void>
, while I expectedly can only return
undefined
undefined
in a function with return type
void
void
.
Is there a reason for that
?
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
Understanding Scope Behavior in Effect System
EC
Effect Community / 🚀-beginners
2y ago
Understanding When to Use `Effect.forkScoped` vs `Effect.fork`
EC
Effect Community / 🚀-beginners
2y ago
Understanding Effect.isFailure with Effect.succeed
EC
Effect Community / 🚀-beginners
2y ago
Understanding the `Effect` Type and Promises in Effect Typescript
EC
Effect Community / 🚀-beginners
16mo ago