Give a typing to the arguments, especially the callbacks. That's the easiest thing to get wrong.