How to convert a function's parameters into an interface with named properties derived from the function param names?

前端 未结 0 1133
情歌与酒
情歌与酒 2020-12-05 06:27

I have a function (imported from an external library) that looks like this:

const fn = (s: string, n: number) => null;

I want to be able t

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