Infer type of function argument by other function argument in Typescript

后端 未结 0 1472
醉酒成梦
醉酒成梦 2020-12-29 09:30

I want to declare function type like

type ReviewChangeHandler = 
    | ((newReview: Review, oldReview: null, options: {type: \'CREATE\'}) => void)
    | ((         


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