TypeScript 85 🔷 Satisfies Operator
The satisfies operator, introduced in TypeScript 4.9, solves a long-standing dilemma: you want to validate that a value conforms to a type, but you don’t want to lose the specific type that TypeScript would infer on its own. Before satisfies, you had two imperfect choices. You could use a type annotation (: SomeType), which validates…