diff --git a/types/hubot/index.d.ts b/types/hubot/index.d.ts index f0daff69b6..bf21fd6160 100644 --- a/types/hubot/index.d.ts +++ b/types/hubot/index.d.ts @@ -3,6 +3,8 @@ // Definitions by: Dirk Gadsden // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export = Hubot; + declare namespace Hubot { class Brain { userForId(id: any): any; @@ -30,9 +32,7 @@ declare namespace Hubot { random(items: T[]): T; } - interface ListenerCallback { - (response: Response): void; - } + type ListenerCallback = (response: Response) => void; class Robot { brain: Brain; @@ -44,5 +44,3 @@ declare namespace Hubot { response(regex: RegExp, options: any, callback: ListenerCallback): void; } } - -export = Hubot;