/** * Acts like a global configuration object but avoids attaching itself to the window object */ export const config = { LOG_VERBOSITY: 0, // [0 - 3] }; /** * Gets a config entry * * @param key Key of config entry to get */ // @ts-ignore: implicit any, has no index structure export const getConfigEntry = (key: string) => config[key]; /** * Sets a config entry * * @param key Key of config entry to set * @param value Value of config entry to set */ export const setConfigEntry = (key: string, value: string | boolean | number) => // @ts-ignore: implicit any, has no index structure (config[key] = value);