12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
import mitt from "mitt";
|
|
|
|
export const STOP_DETECTION_TIMER_EVENT = "stopDetectionTimer";
|
|
|
|
type MittBusEvents = {
|
|
openThemeDrawer: undefined;
|
|
[STOP_DETECTION_TIMER_EVENT]: undefined;
|
|
};
|
|
|
|
const mittBus = mitt<MittBusEvents>();
|
|
export default mittBus;
|