Index supertype by key of subtype in Typescript

前端 未结 0 379
北恋
北恋 2021-02-04 18:01

I have the following code:

type Foo = { foo: string }
type Bar = { bar: string }
type FooAndBar = Foo & Bar 

function fn(list: Arr         


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