How to fix the typing of this functional expression in Typescript

前端 未结 0 1486
粉色の甜心
粉色の甜心 2021-01-21 07:56

How to fix the type of this expression ?

function Box(x: T) {
  return {
    inspect: () => `Box(x)`,
    map: (f: (arg0: T) => unk         


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