Typescript complains that it cannot assign string to conditional type `T extends ? string: null`

后端 未结 0 1455
春和景丽
春和景丽 2021-01-17 05:56

So, I am pretty stumped with what seems to be a trivial example. I was testing out conditional types based on the blog post here and I cannot get the snippet to compile. I d

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