export function initMixin (Vue: Class<component>) { Vue.prototype._init = function (options?: Object) { const vm: Component = this .... }
请问这个 Vue: vm:冒号和 Class<component>是什么意思? 这是 Javascript 的语法吗
|  |      1seki      2017-05-13 00:14:07 +08:00 这个是 flow 的 type 语法,vue 用了 flow 做静态类型检查 https://flow.org/ | 
|  |      2linshudery OP 谢谢,了解了。 |