wujingjing
2024-11-14 b074cb74e5f50c08555f12685fef800532505057
1
2
3
4
5
6
7
8
9
10
11
12
13
// https://www.npmjs.com/package/mitt
import type { Emitter } from 'mitt';
import mitt from 'mitt';
import { MittType } from '../types/mitt';
 
// 类型
const emitter: Emitter<MittType> = mitt<MittType>();
 
export type MittTypeKey = keyof MittType;
 
 
// 导出
export default emitter;