提交 f919d453 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix(types): change `Function` to `(args: any) => any`

上级 b3cfb624
......@@ -64,3 +64,4 @@ tags
*.wechaty.json
/package
/wechaty-*.*.*.tgz
package-lock.json
此差异已折叠。
......@@ -166,7 +166,7 @@ export class Room extends EventEmitter implements Sayable {
public on(event: 'topic', listener: (this: Room, topic: string, oldTopic: string, changer: Contact) => void): this
public on(event: 'EVENT_PARAM_ERROR', listener: () => void): this
public on(event: RoomEventName, listener: Function): this {
public on(event: RoomEventName, listener: (args: any) => any): this {
log.verbose('Room', 'on(%s, %s)', event, typeof listener)
// const thisWithSay = {
......
......@@ -282,7 +282,7 @@ export class Wechaty extends EventEmitter implements Sayable {
* @todo document me
*/
public on(event: WechatyEventName, listener: Function): this {
public on(event: WechatyEventName, listener: (args: any) => any): this {
log.verbose('Wechaty', 'addListener(%s, %s)', event, typeof listener)
// const thisWithSay: Sayable = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册