Union of functions with typed `this`, fails with no parameters

后端 未结 0 484
无人及你
无人及你 2021-01-01 01:57

Below I have an example of a callback that can take an optional argument.

interface Context {
  hello: boolean
}

type OptionsTest =
      | ((this: Context)          


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