type Resident = { familyName : string ; lastName : string ; mom ? : Resident ; } ; const getMomName = ( resident ) : string => resident . mom . lastName ; const patty = { familyName : 'Hope-Rabbit' , lastName : 'patty' } ; console . log ( getMomName ( patty ) ) ;