From 969444b32101a45d5917a3947b94bb09c3fc01a1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 16 Sep 2022 17:16:38 +0200 Subject: optional channels (1) --- client-web/source/preferences/mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/preferences/mod.ts') diff --git a/client-web/source/preferences/mod.ts b/client-web/source/preferences/mod.ts index f4fa551..ecff8fa 100644 --- a/client-web/source/preferences/mod.ts +++ b/client-web/source/preferences/mod.ts @@ -18,7 +18,7 @@ type TypeMapper = { "string": string, "number": number, "boolean": boolean } type PrefMap = { [Key in keyof T]: T[Key]["type"] } type Optional = { [Key in keyof T]?: T[Key] } export const { prefs: PREFS, explicit: PREFS_EXPLICIT } = register_prefs(PREF_DECLS) -const pref_change_handlers: Map unknown>> = new Map() +const pref_change_handlers: Map unknown>> = new Map() export const on_pref_changed = (key: keyof typeof PREFS, cb: () => unknown): (() => void) => { const m = (pref_change_handlers.get(key) ?? (() => { -- cgit v1.2.3-70-g09d2