Hacker News new | ask | show | jobs
by moystard 1242 days ago
I usually use the unknown type and leverage type guards for isolating the exact type and processing it. If it falls down the type guards, process as generic error.