mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 13:15:59 +08:00
15 lines
308 B
TypeScript
15 lines
308 B
TypeScript
import * as Hubot from "hubot";
|
|
|
|
const brain = new Hubot.Brain();
|
|
brain; // $ExpectType Brain
|
|
brain.userForName('someone'); // $ExpectType any
|
|
|
|
const robot = new Hubot.Robot(
|
|
'src/adapters',
|
|
'slack',
|
|
false,
|
|
'hubot',
|
|
);
|
|
robot; // $ExpectType Robot
|
|
robot.hear(/hello/, () => null); // $ExpectType void
|