結果 : typescript extract type from array of objects