package pqueue type Job struct { ID string Payload interface{} Priority int
import { EventEmitter } from "events"; export interface Job<T> { id: string; payload: T; attempts: number;