How to judge the function type according to the parameter type

前端 未结 0 1974
暖寄归人
暖寄归人 2020-12-10 11:14

In the following case, How to judge the function type according to the parameter b type

const getData = (a: string, b?: string) => {
  const o         


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