Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
The `satisfies` operator – Learning TypeScript
(opens in new tab)
(learningtypescript.com)
3 points
joshuakgoldberg
3y ago
1 comments
Save
Share
1 comments
1 comments · 1 top-level
top
newest
oldest
joshuakgoldberg
OP
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.
j
/
k
navigate · click thread line to collapse