TypeScript 에는 타입을 읽기 전용으로 만들어주는 타입 시스템이 있다. type ObjectType = { property1: number; readonly property2: number; }; const object: ObjectType = { property1: 1, property2: 2, }; object.property1 = 11; object.property2 = 22; // 에러 발생 이런 식으로 말이다. type ObjectType = Readonly; const object: ObjectType = { property1: 1, property2: 2, }; object.property1 = 11; // 에러 발생 object.property2 = 22; // 에러 발생 모든 속성..