wujingjing
2024-09-23 149e2098dc2fae0989e258debe967ccdc04bfcfb
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;