LoginSignup
0
0

オブジェクトの配列からunion型をつくる

Posted at

前回オブジェクトからのunion型を投稿した。

では、オブジェクト配列からのunion型の場合は?
keyof typeof に加えて、 [number] を使う。



便利ですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0