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

#40 Typescript transition step 11: fix friend-request.ts & tslint

上级 4c119f43
......@@ -11,17 +11,17 @@
*/
import Config from './config'
import Wechaty from './wechaty'
// import Wechaty from './wechaty'
class FriendRequest {
abstract class FriendRequest {
constructor() {
if (!Config.puppetInstance()) {
throw new Error('no Config.puppetInstance() instanciated')
}
}
send(contact, message) { throw new Error('pure virtual implement') }
accept() { throw new Error('pure virtual implement') }
public abstract send(contact: Contact, hello: string): void
public abstract accept(): void
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册