mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-27 05:00:53 +01:00
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import type { Notification } from '../types.ts';
|
|
|
|
/**
|
|
* Base interface that all notification service implementations must follow
|
|
*/
|
|
export interface Notifier {
|
|
/**
|
|
* Send a notification
|
|
* This method should be fire-and-forget - errors should be logged but not thrown
|
|
*/
|
|
notify(notification: Notification): Promise<void>;
|
|
|
|
/**
|
|
* Get the service name for logging purposes
|
|
*/
|
|
getName(): string;
|
|
}
|