Typescript function overload with optional param and rest params

后端 未结 0 484
暖寄归人
暖寄归人 2021-01-22 04:27

I have a function in Typescript with overloads as follows:

function test(atts?: {[key: string]: string}, ...children: string[]): void;
function test(atts?: {[key:         


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