Maintain compatibility with CommonJS export pattern from hubot's CoffeeScript

This commit is contained in:
Dirk Gadsden
2017-06-10 22:04:57 -07:00
parent 8e110b17d0
commit 79c97393eb

View File

@@ -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;