9 lines
139 B
TypeScript
9 lines
139 B
TypeScript
import mitt from 'mitt'
|
|
|
|
type Events = {
|
|
openPost: IPost
|
|
startLoading: boolean
|
|
}
|
|
|
|
const emitter = mitt<Events>()
|
|
export default emitter |