username@email.com
6 天以前 806a9514e47408abd36065aa9c8226e571835f2f
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;