Correct type spec of elected callback...

... as third argument is `undefined` for leader when elected.
Merge pull request #3 from lucafavatella/fix-elected-callback-type-spec

Small type spec improvement in elected callback