mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #33317 from Eeemil/patch-1
types/hubot: added catchAll
This commit is contained in:
Vendored
+3
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/hubotio/hubot
|
||||
// Definitions by: Dirk Gadsden <https://github.com/dirk>
|
||||
// Kees C. Bakker <https://github.com/KeesCBakker>
|
||||
// Emil Marklund <https://github.com/eeemil>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Hubot {
|
||||
@@ -40,6 +41,8 @@ declare namespace Hubot {
|
||||
readonly adapter: A;
|
||||
|
||||
constructor(adapterPath: string, adapter: string, httpd: boolean, name: string, alias?: string);
|
||||
catchAll(callback: ListenerCallback<this>): void;
|
||||
catchAll(options: any, callback: ListenerCallback<this>): void;
|
||||
hear(regex: RegExp, callback: ListenerCallback<this>): void;
|
||||
hear(regex: RegExp, options: any, callback: ListenerCallback<this>): void;
|
||||
helpCommands(): string[];
|
||||
|
||||
Reference in New Issue
Block a user