IHandlerMap

This commit is contained in:
Travis Ralston 2020-07-30 08:43:33 -06:00
parent 8cdb98300b
commit 1aaedb527d

View file

@ -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 = {};