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

enhance sayable

上级 79b32cd4
......@@ -45,3 +45,6 @@ export {
} from './deprecated'
export { IoClient } from './io-client'
export {
Sayable,
} from './types'
import { Wechaty } from './wechaty'
import {
Contact,
Message,
......@@ -10,8 +11,10 @@ export interface Sayable {
text : string,
replyTo? : Contact | Contact[]
): Promise<void | Message>
wechaty: Wechaty,
}
export interface Acceptable {
accept: () => Promise<void>
wechaty: Wechaty
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册