【发布时间】:2021-01-14 07:57:01
【问题描述】:
在 react native github 中是这一行:
module.exports=((Animated: any) : (typeof AnimatedImplementation) & typeof Animated);
这是什么意思? & 和 : 这些是类型提示还是什么?
【问题讨论】:
标签: javascript react-native flowtype
在 react native github 中是这一行:
module.exports=((Animated: any) : (typeof AnimatedImplementation) & typeof Animated);
这是什么意思? & 和 : 这些是类型提示还是什么?
【问题讨论】:
标签: javascript react-native flowtype
这些是https://flow.org/ 类型注释。您可以通过具有 @flow 标记的标题注释来判断文件使用 Flow 语法。
【讨论】: