import Settings from '../../shared/Settings'; import * as messages from '../../shared/messages'; export default interface SettingClient { load(): Promise; // eslint-disable-next-line semi } export class SettingClientImpl { async load(): Promise { let settings = await browser.runtime.sendMessage({ type: messages.SETTINGS_QUERY, }); return settings as Settings; } }