Typescript inference based on key value

后端 未结 0 1203
名媛妹妹
名媛妹妹 2020-11-27 03:34

Let say we have some coords of different type:

const coords2d = {
  x: 1,
  y: 2
}

const coords3d = {
  x: 1,
  y: 2,
  z: 3
}

We have map f

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