I just start to learn TypeScript, and I saw there is a lot of code using this sytax =>. I did some research by reading the Specification of TypeScript Versio
In this example, the second parameter to 'vote' has the function type
(result: string) => any
which means the second parameter is a function returning type 'any' that has a single parameter of type 'string' named 'result'.