Defining an Output type for typescrpit which prevents mistaking an Output argument as Input

前端 未结 0 657
逝去的感伤
逝去的感伤 2020-11-27 18:03

This might be already defined, I got this idea from C#. I would like to write the following:

type Result = {result: number};

function myFun(a: number, b: num         


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