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

remove module export default

上级 8caba018
......@@ -190,5 +190,3 @@ export abstract class Accessory extends EventEmitter {
}
}
export default Accessory
......@@ -241,4 +241,3 @@ export {
}
export const config = new Config()
export default config
......@@ -87,5 +87,3 @@ export class Doctor {
})
}
}
export default Doctor
......@@ -36,4 +36,3 @@ export { IoClient } from './io-client'
export {
Wechaty,
}
export default Wechaty
......@@ -220,5 +220,3 @@ export class IoClient {
}
}
export default IoClient
......@@ -524,5 +524,3 @@ export class Io {
}
}
export default Io
......@@ -5,10 +5,12 @@ import {
export type AnyFunction = (...args: any[]) => any
export interface Sayable {
say (text: string, replyTo?: Contact | Contact[]): Promise<void>
say (
text : string,
replyTo? : Contact | Contact[]
): Promise<void>
}
export interface Invitation {
export interface Acceptable {
accept: () => Promise<void>
reject: () => Promise<void>
}
......@@ -735,5 +735,3 @@ export class ContactSelf extends Contact {
}
}
export default Contact
......@@ -13,5 +13,3 @@ export class Favorite {
}
}
export default Favorite
......@@ -39,6 +39,10 @@ import {
FriendshipType,
} from 'wechaty-puppet'
import {
Acceptable,
} from '../types'
import {
Contact,
} from './contact'
......@@ -52,7 +56,7 @@ import {
*
* [Examples/Friend-Bot]{@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/friend-bot.ts}
*/
export class Friendship extends Accessory {
export class Friendship extends Accessory implements Acceptable {
// tslint:disable-next-line:variable-name
public static Type = FriendshipType
......@@ -325,14 +329,6 @@ export class Friendship extends Accessory {
return contact
}
/**
* @ignore
*/
public async reject (): Promise<void> {
log.warn('Friendship', 'reject() not necessary, NOP.')
return
}
/**
* Return the Friendship Type
* > Tips: FriendshipType is enum here. </br>
......@@ -363,5 +359,3 @@ export class Friendship extends Accessory {
}
}
export default Friendship
......@@ -780,5 +780,3 @@ export class Message extends Accessory implements Sayable {
}
}
export default Message
......@@ -3,5 +3,3 @@ export class Money {
//
}
}
export default Money
......@@ -962,5 +962,3 @@ export class Room extends Accessory implements Sayable {
}
}
export default Room
......@@ -1136,5 +1136,3 @@ export class Wechaty extends Accessory implements Sayable {
this.puppet.unref()
}
}
export default Wechaty
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册