mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Convert to class definition for Robot
This commit is contained in:
Vendored
+2
-1
@@ -34,9 +34,10 @@ declare namespace Hubot {
|
||||
(response: Response): void;
|
||||
}
|
||||
|
||||
export interface Robot {
|
||||
class Robot {
|
||||
brain: Brain;
|
||||
|
||||
constructor(adapterPath: string, adapter: string, httpd: boolean, name: string, alias?: string);
|
||||
hear(regex: RegExp, callback: ListenerCallback): void;
|
||||
hear(regex: RegExp, options: any, callback: ListenerCallback): void;
|
||||
response(regex: RegExp, callback: ListenerCallback): void;
|
||||
|
||||
Reference in New Issue
Block a user