flowjs attributes

JavaScript
/* @flow */
function square (n: number) {
  return n * n
}

const four = square(2)
 
 
function square (n: number) {
  const result = n * n
}
 

Source

Also in JavaScript: