Search
Feedback
Setup for Free
EC
Effect Community
•
2y ago
Jaco
Evaluating the 'tagged' Function in TypeScript: A Good or Bad Idea?
I would like test the feeling about a
"tagged
" function
export interface Parser{ _tag:"Parser"; (input:string)=>string; }
export interface Parser{ _tag:"Parser"; (input:string)=>string; }
good idea
? or bad idea
?
Effect Community
Join
Production-grade applications in TypeScript.
5,916
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
export
interface
Parser
{
_tag
:
"Parser"
;
(
input
:
string
)
=>
string
;
}
export
interface
Parser
{
_tag
:
"Parser"
;
(
input
:
string
)
=>
string
;
}
No replies yet
Be the first to reply to this message
Join
Similar Threads
TypeScript: Enforcing Tagged Struct without Context in Generic Function
EC
Effect Community / schema
2y ago
Setting Default Values in Tagged Classes or Errors in TypeScript
EC
Effect Community / effect-beginners-🚀
16mo ago
Restricting a Schema to a Tagged Schema in TypeScript
EC
Effect Community / effect-beginners-🚀
9mo ago
Understanding Data Tagged Error in TypeScript
EC
Effect Community / effect-beginners-🚀
2y ago