WebIndex/composables/emitter.ts

10 lines
165 B
TypeScript
Raw Normal View History

2024-11-17 11:45:08 +08:00
import mitt from 'mitt'
type Events = {
openPost: IPost
startLoading: boolean
2024-12-01 13:09:44 +08:00
eventBus: INotification
2024-11-17 11:45:08 +08:00
}
const emitter = mitt<Events>()
export default emitter