TypeScript to introduce the "satisfies" Operator

from blog linkedlist, | ↗ original
TypeScript 4.9 beta introduces an interesting new feature: the satisfies operator. The release notes show an example where that can be useful. Generally, it makes it easy to type hint values inline, for example when defining a (complex) object. satisfies is similar to type assertions or the as operator. But unlike with these two approaches,...