Typescript infer value from subset of union for conditional type

前端 未结 0 1920
無奈伤痛
無奈伤痛 2021-01-05 00:35

I\'m looking for a little help on type inference to narrow a union in TypeScript based on a conditional type.

Our API takes a set of parameters and validates them. As

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