Invert typeof for callback

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>
Merge pull request #1 from mkozjak/cbFix

Invert typeof for callback