diff --git a/src/wechaty.ts b/src/wechaty.ts index e0d5c5097977ed8d0910c18d4f335c1ee0d418b2..32cfb5cbf0f645a77f53c77bd6b025b04696228e 100644 --- a/src/wechaty.ts +++ b/src/wechaty.ts @@ -114,8 +114,9 @@ export interface WechatyOptions { ioToken? : string, // Io TOKEN } +type WechatyPluginUninstaller = () => void export interface WechatyPlugin { - (bot: Wechaty): void + (bot: Wechaty): void | WechatyPluginUninstaller } const PUPPET_MEMORY_NAME = 'puppet'