Shape flow type code example
Example 1: flowjs attributes
/* @flow */
function square (n: number) {
return n * n
}
const four = square(2)
Example 2: flowjs attributes
function square (n: number) {
const result = n * n
}
/* @flow */
function square (n: number) {
return n * n
}
const four = square(2)
function square (n: number) {
const result = n * n
}