From f83f842d8608dc743408112bab948edc2c7b8122 Mon Sep 17 00:00:00 2001 From: Emil Marklund Date: Fri, 22 Feb 2019 16:47:44 +0100 Subject: [PATCH] added catchAll catchAll is a method for replying to messages which does not match any messages matched by hear or respond --- types/hubot/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/hubot/index.d.ts b/types/hubot/index.d.ts index 656c492df6..b0f465719a 100644 --- a/types/hubot/index.d.ts +++ b/types/hubot/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/hubotio/hubot // Definitions by: Dirk Gadsden // Kees C. Bakker +// Emil Marklund // 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): void; + catchAll(options: any, callback: ListenerCallback): void; hear(regex: RegExp, callback: ListenerCallback): void; hear(regex: RegExp, options: any, callback: ListenerCallback): void; helpCommands(): string[];