Rowan Liu's Tech
Home
Blog
CSS
JS
lib
Read
About
GitHub
Home
Blog
CSS
JS
lib
Read
About
GitHub
  • 框架
  • Vue ClI 源码探索
  • vue 源码解读

    • Vue.js技术揭秘
    • Flow
    • Vue.js源码目录设计
    • Vue.js源码构建
    • 从入口开始
    • 数据驱动
    • new Vue发生了什么
    • Vue实例挂载的实现
    • render
    • Virtual DOM
    • createElement
    • update
    • 组件化
  • threejs journey

    • three.js
    • 第一章我们做了什么
    • 基本组件
    • 光源
    • 材质
    • 学习使用几何体
    • 高级几何体和二元操作
    • 粒子和粒子系统
    • 创建、加载高级网格和几何体
    • /lib/threejs/webgl/
  • react journey

    • React
    • Ant Design
  • vuepress

    • 评论
  • egg

    • egg init
  • jQuery系列

    • jQuery一个在JavaScript基础之上封装的函数库。
  • nestjs

    • OAuth 2.0
    • [译]Passport 文档(一)入门
    • [译]Passport 文档(二)提供者
    • [译]Passport 文档(三)基本 & 摘要
    • [译]Passport 文档(四)操作

Flow

Flow是Facebook出品的JavaScript静态类型检查工具,Vue.js的源码利用了Flow做静态类型检查,当然新版的Vue.js中使用了TypeScript来做这个事情。

Flow的工作方式

  • 类型推断
  • 类型注释

Flow在Vue.js源码中的应用

flow目录

flow
|-- compiler.js
|-- component.js
|-- global-api.js
|-- modules.js
|-- options.js
|-- ssr.js
|-- vnode.js
|-- weex.js
Edit this page
Last Updated: 2026/1/12 10:15
Contributors: Rowan Liu
Prev
Vue.js技术揭秘
Next
Vue.js源码目录设计