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

fix `friend` listener param defination: `request` could be undefined(for a...

fix `friend` listener param defination: `request` could be undefined(for a confirmed friend relationship)
上级 cd7c7dd4
......@@ -173,7 +173,7 @@ export class Wechaty extends EventEmitter implements Sayable {
}
public on(event: 'error' , listener: (this: Sayable, error: Error) => void): this
public on(event: 'friend' , listener: (this: Sayable, friend: Contact, request: FriendRequest) => void): this
public on(event: 'friend' , listener: (this: Sayable, friend: Contact, request?: FriendRequest) => void): this
public on(event: 'heartbeat' , listener: (this: Sayable, data: any) => void): this
public on(event: 'logout' , listener: (this: Sayable, user: Contact) => void): this
public on(event: 'login' , listener: (this: Sayable, user: Contact) => void): this
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册