yangyin
2024-10-25 e9060cf8f241536a896d69d0044769bd3b0e8d49
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;