Files
profilarr/src/lib/server/notifications/base/Notifier.ts
2025-11-03 17:27:33 +10:30

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;
}