Solution. We need to take all the elements from an array and convert it to the union. Luckily, TypeScript already has it in its type system - lookup types.
確定! 回上一頁