let human : {name : string, age : number}
= {name : 'Yu', age : 26};
type Human = {name : string, age : number};
let human : Human = {name : 'Yu', age : 26};
interface Human {name : string, age : number};
let human : Human = {name : 'Yu', age : 26};
interface Human {name : string, age : number};
interface SuperHuman extends Human {ability : string};
let hulk = SuperHumanP{name : 'Banner', age : 40, ablility : 'Hulk'};
type LastName = {last : string};
type FullName = {first : string} & LastName;
type Human = { name : string, age : number };
type Human = { married : boolean } // 오류!!!
interface Human { name : string, age : number };
interface Human { married : boolean };
interface Human { undef : undefined };
let human : Human
= {name : 'Yu', age : 26, married : false, undef : undefined};
🌟 잘못된 부분에 대한 말씀은 언제나 저에게 큰 도움이 됩니다. 🌟
👍 감사합니다!! 👍