Skip to content
RED SAG Skills
medium10 pts · first answer countsjavascripttypescript

satisfies versus a type annotation

Why use satisfies instead of : Record<string, string> here?

const routes = {
  home: "/",
  cart: "/cart",
} satisfies Record<string, string>

routes.cart // type "/cart"? or string?
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions