wupengfei
7 天以前 87acc2d3c66a56bc0e01f44c054bdb0aa3546aa2
src/hooks/useEvent.ts
@@ -3,6 +3,10 @@
export type GlobalEvent = {
  'home:add': any;
  'taskManage:add': any;
  'taskManage:edit': any;
  checkReceiveTask: any;
  serviceChargeSettle: any;
};
export type GlobalEventListener<T extends keyof GlobalEvent> = (payload: GlobalEvent[T]) => any;