From 1aaedb527db386aeefd6a9ede28279f6818ef693 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 30 Jul 2020 08:43:33 -0600 Subject: [PATCH] IHandlerMap --- src/settings/SettingsStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings/SettingsStore.ts b/src/settings/SettingsStore.ts index aeed3321b6..d1092ea23e 100644 --- a/src/settings/SettingsStore.ts +++ b/src/settings/SettingsStore.ts @@ -80,7 +80,7 @@ export type CallbackFn = ( newVal: any, ) => void; -interface HandlerMap { +interface IHandlerMap { // @ts-ignore - TS wants this to be a string key but we know better [level: SettingLevel]: SettingsHandler; } @@ -595,7 +595,7 @@ export default class SettingsStore { return handlers[level]; } - private static getHandlers(settingName: string): HandlerMap { + private static getHandlers(settingName: string): IHandlerMap { if (!SETTINGS[settingName]) return {}; const handlers = {};