© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Difference in `Effect.tap` and `Effect.tapError` Function Requirements - Effect Community
EC
Effect Community
•
2y ago
•
8 replies
danielo515
Difference in `Effect.tap` and `Effect.tapError` Function Requirements
I noticed that Effec
.tap can take any function
, but Effect
.tapError needs a function returning an effect
. Any rreason why is it like that
?
Effect.
tapError
(()
=>
Effect.
sync
(undo)),
Effect.
tapError
(()
=>
Effect.
sync
(undo)),
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
Difference in function return types for `tap` and `tapError` in Effect Typescript library
EC
Effect Community / 🚀-effect
14mo ago
Clarification on `Effect.tap` Function Return Type and Potential Risks
EC
Effect Community / 🚀-effect
2y ago
Contribution Proposal: Function.tap
EC
Effect Community / 🚀-effect
15mo ago
Typecheck miss Effect.tap
EC
Effect Community / 🚀-effect
3y ago