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

allow fall down to the defination of say() to get more flexibility.

上级 2c0676a5
......@@ -423,7 +423,9 @@ export class Message extends Accessory implements Sayable {
public say (url: UrlLink) : Promise<void | Message>
public say (mini: MiniProgram) : Promise<void | Message>
public say (...args: never[]): Promise<never>
// Huan(202006): allow fall down to the defination to get more flexibility.
// public say (...args: never[]): Promise<never>
/**
* Reply a Text or Media File message to the sender.
* > Tips:
......
......@@ -386,7 +386,8 @@ export class Room extends Accessory implements Sayable {
public say (mini: MiniProgram) : Promise<void | Message>
public say (contact: Contact) : Promise<void | Message>
public say (...args: never[]): never
// Huan(202006): allow fall down to the defination to get more flexibility.
// public say (...args: never[]): never
/**
* Send message inside Room, if set [replyTo], wechaty will mention the contact as well.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册