1 comment

[ 0.11 ms ] story [ 16.8 ms ] thread
TypeScript 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.