mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-20 16:14:57 +08:00
Maintain compatibility with CommonJS export pattern from hubot's CoffeeScript
This commit is contained in:
7
types/hubot/index.d.ts
vendored
7
types/hubot/index.d.ts
vendored
@@ -3,8 +3,6 @@
|
||||
// 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;
|
||||
@@ -44,3 +42,8 @@ declare namespace Hubot {
|
||||
response(regex: RegExp, options: any, callback: ListenerCallback): void;
|
||||
}
|
||||
}
|
||||
|
||||
// Compatibility with CommonJS syntax exported by Hubot's CoffeeScript.
|
||||
// tslint:disable-next-line export-just-namespace
|
||||
export = Hubot;
|
||||
export as namespace Hubot;
|
||||
|
||||
Reference in New Issue
Block a user