fix: effect loop (#24014)

This commit is contained in:
Jason Rasmussen
2025-11-20 07:52:37 -05:00
committed by GitHub
parent edbdc14178
commit 1a31faf1a2
6 changed files with 49 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
import type { ThemeSetting } from '$lib/managers/theme-manager.svelte';
import type { ReleaseEvent } from '$lib/types';
import type {
AlbumResponseDto,
LibraryResponseDto,
@@ -34,6 +35,8 @@ export type Events = {
LibraryCreate: [LibraryResponseDto];
LibraryUpdate: [LibraryResponseDto];
LibraryDelete: [{ id: string }];
ReleaseEvent: [ReleaseEvent];
};
type Listener<EventMap extends Record<string, unknown[]>, K extends keyof EventMap> = (...params: EventMap[K]) => void;