Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 276 Bytes

flowtype.md

File metadata and controls

22 lines (16 loc) · 276 Bytes
title
Flow

Simple failing example

/* @flow */

function foo(x) { return x * 10; }
foo('Hello, world!');

Annotations

// Simple
function foo(x: string, y: number): string { ... }

// Arrays
function total(numbers: Array<number>) { ... }