4 ms·
The `satisfies` operator – Learning TypeScript
- joshuakgoldberg 4y agoTypeScript 4.9 introduces a new operator, satisfies, that allows opting into a different kind of type inference from the type system's default. satisfies brings the best of type annotations and default type inference together in a useful manner.