From fbe3b320db530b03a025cef65601193601f17cbb Mon Sep 17 00:00:00 2001 From: Yuki Nagai Date: Tue, 15 Aug 2017 09:03:44 +0900 Subject: [PATCH] Add middleware property to Controller interface --- lib/Botkit.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Botkit.d.ts b/lib/Botkit.d.ts index 666d86a2c..994bee513 100644 --- a/lib/Botkit.d.ts +++ b/lib/Botkit.d.ts @@ -96,6 +96,13 @@ declare namespace botkit { readonly log: { (...params: any[]): void; } + readonly middleware: { + capture: any, + heard: any, + receive: any, + send: any, + spawn: any + } hears(keywords: string | string[] | RegExp | RegExp[], events: string | string[], cb: HearsCallback): this; hears(keywords: string | string[] | RegExp | RegExp[], events: string | string[], middleware_or_cb: HearsFunction, cb: HearsCallback): this; on(event: string, cb: HearsCallback): this;