The `satisfies` operator – Learning TypeScript (learningtypescript.com) 3 points by joshuakgoldberg 3y ago ↗ HN
[–] joshuakgoldberg 3y ago ↗ 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.
1 comment
[ 0.11 ms ] story [ 16.8 ms ] thread