Hacker News new | ask | show | jobs
by hesviiggvv 799 days ago
I have `MaybeRequired` serving almost the exact same purpose! You are right it’s a common problem, a useful approach, and I just wish TS had better support for case analysis than chained ternaries.