結果 : typescript create type from array of objects