type PersonMap = { [key in 'firstName' | 'lastName']: string; };. 這裡和index signatures 類似,你一樣會看到像是[key: ... ] 這樣的寫法, ...
確定! 回上一頁