結果 : typescript get type from array of objects