Replace worker int events with type `WorkerEvent'