WebIndex/composables/emitter.ts

9 lines
139 B
TypeScript
Raw Normal View History

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