Manually pass 1 out of 3 generics and tell compiler to infer the rest

前端 未结 0 1069
谎友^
谎友^ 2021-01-11 23:57

I have function with 3 generics:

function createAPIAction<
  OwnArgs extends unknown[], 
  Type extends string, 
  P         


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