Generic union type inferred differently from equivalent direct union type

后端 未结 0 1771
北海茫月
北海茫月 2021-01-05 12:05

Consider the following:

type UnwrapNullable1 = Required<{ x?: (1 | undefined) }>["x"]
type UnwrapNullable = Required<{ x?: T }>         


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