IOPaint/lama_cleaner/app/src/event.ts

12 lines
211 B
TypeScript
Raw Normal View History

2022-09-15 16:21:27 +02:00
import mitt from 'mitt'
export const EVENT_PROMPT = 'prompt'
export const EVENT_CUSTOM_MASK = 'custom_mask'
export interface CustomMaskEventData {
mask: File
}
2022-09-15 16:21:27 +02:00
const emitter = mitt()
export default emitter