WebIndex/composables/emitter.ts
2024-11-17 11:45:08 +08:00

9 lines
139 B
TypeScript

import mitt from 'mitt'
type Events = {
openPost: IPost
startLoading: boolean
}
const emitter = mitt<Events>()
export default emitter