28
Annotation, `as`, or `satisfies` on an object literal — I have three ways to do this and no rule for picking
I keep writing config objects and route maps and I have three ways to type them, all of which compile. Annotating the variable with the type. Casting the literal with . Or putting after it. They behave differently in…