Typescript combines both definitions into a single interface so that we'll have access to both properties. //no error const cat: Animal = { ...
確定! 回上一頁