mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
19 lines
396 B
TypeScript
19 lines
396 B
TypeScript
import mitt from 'mitt'
|
|
|
|
import { SHOW_INPUT_BOX, SHOW_INPUT_BOX_RESPONSE } from '@/utils/constant'
|
|
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
type IEvent = {
|
|
[SHOW_INPUT_BOX_RESPONSE]: string
|
|
[SHOW_INPUT_BOX]: {
|
|
value: string
|
|
title: string
|
|
placeholder: string
|
|
multiLine?: boolean
|
|
}
|
|
}
|
|
|
|
const emitter = mitt<IEvent>()
|
|
|
|
export default emitter
|