Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Add middleware property to Controller interface
Browse files Browse the repository at this point in the history
  • Loading branch information
uny committed Aug 15, 2017
1 parent 70b176c commit fbe3b32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Botkit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<S, M, B>): this;
hears(keywords: string | string[] | RegExp | RegExp[], events: string | string[], middleware_or_cb: HearsFunction<M>, cb: HearsCallback<S, M, B>): this;
on(event: string, cb: HearsCallback<S, M, B>): this;
Expand Down

0 comments on commit fbe3b32

Please sign in to comment.