ts 类型验证,提示枚举信息 const eventTypeList = ['MOUSE_MOVE', // 鼠标移动'LEFT_CLICK' // 左键单击// 'MOUSE_OUT', ] as consttype EventTypeList = typeof eventTypeList[number]