Use unknown return type for callbacks

This commit is contained in:
Andras Schmelczer 2025-08-17 15:12:31 +01:00
commit 81b81e30ff
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -70,7 +70,7 @@ export class SyncHistory {
private readonly syncHistoryUpdateListeners: ((
status: HistoryStats
) => void)[] = [];
) => unknown)[] = [];
private status: HistoryStats = {
success: 0,
@ -111,7 +111,7 @@ export class SyncHistory {
}
public addSyncHistoryUpdateListener(
listener: (stats: HistoryStats) => void
listener: (stats: HistoryStats) => unknown
): void {
this.syncHistoryUpdateListeners.push(listener);
listener({ ...this.status });