出现此错误:
缺少函数隐式 this 参数的注释。
缺少函数隐式
this
如果能够用评论类型对此进行注释就好了。可能吗?
https://flow.org/en/docs/types/comments/
您可以将任何不应在 JS 输出中看到的 Flow 语法放入
/*::
:
*/
function baz(/*:: this: Foo */){}
尝试流程