'Flow - Am I Your Type?' by Mark Volkmann

preview_player
Показать описание
Flow is an open source tool from Facebook that is "a static type checker, designed to find type errors in JavaScript programs". It supports adding types gradually to variables, parameters, return values, object properties, and array elements. Flow even catches some errors without adding types by using type inference and flow analysis.

Flow supports many types including primitives, functions (with specified signatures), arrays, objects, built-in classes, custom classes, and generic (parameterized) classes.

Flow is similar to Microsoft TypeScript and mostly uses the same syntax for specifying types. However, TypeScript is also a transpiler. One benefit of using Flow is that Babel can be used for transpiling. Babel typically implements new ECMAScript features before TypeScript.

This talk covers everything you need to know to get started using Flow, including integration with Babel, ESLint, editors, and IDEs.

Mark Volkmann
OBJECT COMPUTING, INC.

Рекомендации по теме