Update src/app/services/calendar-settings-service.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Théophyl HoguetandCopilot authored and GitHub committed 2025-11-06 23:58:42 +01:00
1 parent 3eb35854d4
commit 275512d443
1 file changed
+11 -2
+11 -2
View File
@@ -48,10 +48,19 @@ export class CalendarSettingsService {
}));
}
get(id: string): WritableSignal<boolean> {
return this.signals.get(id)!;
/**
* Returns the signal for the given setting ID, or undefined if not found.
*/
get(id: string): WritableSignal<boolean> | undefined {
return this.signals.get(id);
}
/**
* Returns true if the setting with the given ID exists.
*/
has(id: string): boolean {
return this.signals.has(id);
}
getDescription(id: string): string {
return this.definitions.get(id)?.description ?? '';
}