(Utility Types)
Readonly<T>
interface Person {
name: string;
age: number;
}
const person: Readonly<Person> = { //👈
name: "이정환",
age: 27,
};
person name = ""; // ❌오류
Partial<T>
interface Person {
name: string;
age: number;
}
const person: Partial<Person> = { //👈
name: "이정환",
};