Type checking unknown objects in typescript
Explanation of Problem
Imagine a reusable angular component which emits an unknown value. I recently came across this in an app which has a reusable modal for confirming an action. It takes in an unknown object which it also outputs when the action i...
techblog.timhilton.xyz3 min read
Tim Hilton
Related: typescript 5.5 will contain type checking improvements.
totaltypescript.com/type-predicate-inference