types
专门用于获取scope
所有事件类型。
ts
import { FastEvent } from "fastevent"
const emitter = new FastEvent();
const scope = emitter.scope<{
click:{x: number, y: number},
context: boolean
}>('user')
console.log(scope.types) // undefined
type Types = typeof scope.types
type Events = typeof scope.types.events
//
//
//
//
//
//
//
//
//
//