Typescript decorator replace function body or return

后端 未结 0 478
[愿得一人]
[愿得一人] 2021-02-13 17:23

I want to write a decorator which replace the function body or simple return from the function. Something like this:

function mock(target: (...args: any) => an         


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