apphouse
Version:
Component library for React that uses observable state management and theme-able components.
20 lines (19 loc) • 677 B
TypeScript
import { ApphouseTheme } from '../styles/defaults/themes.interface';
import AppTheme from '../styles/AppTheme';
/**
* Settings stores the state for the app settings such as theme,
* external hardwares or any other configuration you would like to
* persist during the web app session
*/
export default class Settings {
appVersion: string;
appVersionDescription: string;
platform: 'web' | 'mobile';
theme: AppTheme;
constructor();
get version(): string;
setAppVersion(version: string): void;
setAppVersionDescription(description: string): void;
setThemeId(mode: string): void;
setCustomTheme(theme: ApphouseTheme, id: string): void;
}