Nick
Nick

Reputation: 5198

What is the name for this documentation syntax?

In the Material UI docs, among others, I see callback functions described like this:

function(event: object, value: undefined) => void

I know of JSDoc, but I do not know this more terse format, like Flow annotations combined with ES6 arrow function syntax. What is it called?

Upvotes: 1

Views: 58

Answers (1)

soroush gholamzadeh
soroush gholamzadeh

Reputation: 2784

Since it is a set of React components, This signature is for FlowJS:

Flow Docs

Upvotes: 3

Related Questions