wujingjing
2024-09-19 2ad14a103d93ce48e2ffdd970569ea9eb1524f27
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;