Typescript provides a utility type called Readonly which allows us to make a property or properties readonly.

Example

interface Item {
  title: string,
  description: string
}

const item: Readonly<Item> = {
  title: "Cheddar Cheese Slices",
  description: "Generic Brand; 10 slices"
}

item.title = "Generic Brand Cheese Slices" //Cannot assign to 'title' because it is a read-only property.