What does the `satisfies` operator introduced in TypeScript 4.9 do?

TypeScript Professional Hard

TypeScript Professional — Hard

What does the `satisfies` operator introduced in TypeScript 4.9 do?

Key points

  • `satisfies` operator validates type without widening
  • Does not cast a value at runtime
  • Does not replace `as` type assertions
  • Does not enforce strict null checks

Ready to go further?

Related questions