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