結果 : typescript union type from array of objects