Files
DefinitelyTyped/types/hubot/hubot-tests.ts
2017-06-10 21:43:49 -07:00

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