TypeScript conditional types - returns one type at all cases

前端 未结 0 1958
别跟我提以往
别跟我提以往 2020-12-14 17:38

In my project I want to choose which function to apply to an argument based on its type. SO there\'s a base interface and an extended one, that adds one property to the base

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