why can't you apply a union of things to a generic function that accepts each thing individually

前端 未结 0 1148
离开以前
离开以前 2021-01-15 04:38

i have a list of generic objects that i keep as a union because its helpful in other parts of my app, but i want to make helpers that are typed with a simpler structural typ

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