Can I extract type from array?

后端 未结 0 1367
青春惊慌失措
青春惊慌失措 2021-02-02 05:05

Here is my goal, I\'m wondering is it possible to create a PickFromArray type like this?

type FooBar = { foo: string, bar: number, foobar: string }
t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题