Generic call signatures and type inference

后端 未结 0 703
南笙
南笙 2020-12-05 22:56

I have the following two snippets: 1.

interface Identity {
    (arg: T): T
}

function identity(arg: T) {
    return arg
}

let          


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