mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-20 16:14:57 +08:00
Reorder export and fix function type
This commit is contained in:
8
types/hubot/index.d.ts
vendored
8
types/hubot/index.d.ts
vendored
@@ -3,6 +3,8 @@
|
||||
// Definitions by: Dirk Gadsden <https://github.com/dirk>
|
||||
// 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<T>(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;
|
||||
|
||||
Reference in New Issue
Block a user