wujingjing
2024-09-10 4d40f42329cd055d725d6eda648caec5cf28daa7
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;