refactor: add type alias for worker event handler