declare function overload as Type in Typescript

前端 未结 0 1164
傲寒
傲寒 2021-01-11 14:59

Here I have a function with overloads:

function test(): string;
function test(arg?: string): string {
  return arg || \'\';
}

can I declare t

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