shipstar / flow-examples

A few examples of the Facebook Flow type checking system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

8 basic Flow examples where simple things are broken and fixable in each one.

Some of the examples are adapted from here.

To get started, install flow based on these instructions. Then, run flow check in the root directory to check all files, or flow check-contents < [file-name] to check one at a time.

Presentation

JavaScript is dynamically typed.

Sometimes things break at runtime.

Some people want things to break at compile-time instead.

People are inventing compile-to-JS languages for that. (PureScript, TypeScript, etc)

But I already wrote SOOOO much JavaScript...

Facebook Flow!

About

A few examples of the Facebook Flow type checking system.


Languages

Language:JavaScript 100.0%