Files
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

19 lines
555 B
TypeScript

import type { Event } from "@server/types";
export default abstract class BaseProcessor {
static applicableEvents: (Event["name"] | "*")[] = [];
public abstract perform(event: Event): Promise<void>;
/**
* Handle failure when all attempts are exhausted for the processor.
*
* @param event processor event
* @returns A promise that resolves once the processor handles the failure.
*/
// oxlint-disable-next-line @typescript-eslint/no-unused-vars
public onFailed(event: Event): Promise<void> {
return Promise.resolve();
}
}