Functions as types
As those familiar with JavaScript will know, functions themselves are values, and therefore, they have a type.
Let's take two functions, multiply
and echoString
as examples:
We then declare our function type definitions using the following syntax:
Last updated