Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

d.ts文件声明中少了元事件的类型 #77

Closed
CaoMeiYouRen opened this issue Jul 23, 2019 · 0 comments
Closed

d.ts文件声明中少了元事件的类型 #77

CaoMeiYouRen opened this issue Jul 23, 2019 · 0 comments
Labels

Comments

@CaoMeiYouRen
Copy link

我在使用typescript写事件监听时,希望监听一下元事件的心跳连接,但在编辑器中提示 类型“"meta_event.heartbeat"”的参数不能赋给类型“"socket.connecting" | "socket.failed" | "socket.reconnecting" | "socket.reconnect" | "socket.reconnect_failed" | "socket.max_reconnect"”的参数
查阅源码后发现并未对元事件进行d.ts类型声明
虽然编译成js之后依旧可以执行,但是会对使用ts编写的用户有所困扰,希望修复一下

momocow pushed a commit that referenced this issue Jul 23, 2019
inazuma-bot added a commit that referenced this issue Jul 23, 2019
## [2.0.2](v2.0.1...v2.0.2) (2019-07-23)

### Bug Fixes

* **types:** Fix definitions of meta events. ([ca1a731](ca1a731)), closes [#77](#77)
@momocow momocow added the bug label Jul 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants