mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
14 lines
231 B
TypeScript
14 lines
231 B
TypeScript
import mitt, { Emitter } from 'mitt'
|
|
|
|
declare type MittType<T = any> = {
|
|
onOpenTemplateSettings: {
|
|
template: string,
|
|
|
|
}
|
|
};
|
|
// 类型
|
|
const emitter: Emitter<MittType> = mitt<MittType>()
|
|
|
|
// 导出
|
|
export default emitter
|