export interface ISwitch { disable?: boolean; active?: boolean; action?: (event: ISwitchEvent) => Promise; } export interface ISwitchEvent { active: boolean; revert: () => Promise; }