Y
Hacker News
new
|
ask
|
show
|
jobs
The `satisfies` operator – Learning TypeScript
(
learningtypescript.com
)
3 points
by
joshuakgoldberg
1320 days ago
1 comments
joshuakgoldberg
1320 days 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.
link