22
schangxiang@126.com
2024-12-20 d151ad916449dd1b081ce515daf893e54ef5511c
1
2
3
4
5
6
7
8
// https://www.npmjs.com/package/mitt
import mitt, { Emitter } from 'mitt';
 
// 类型
const emitter: Emitter<MittType> = mitt<MittType>();
 
// 导出
export default emitter;