-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathautobot.d.ts
More file actions
29 lines (29 loc) · 789 Bytes
/
autobot.d.ts
File metadata and controls
29 lines (29 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
interface AllModeCommand {
autobot: any;
Speak(phrase: string): AllModeCommand;
}
declare class Autobot {
name: string;
make: string;
model: string;
constructor();
HasNameOf(name: string): Autobot;
WithMake(make: string): Autobot;
AndModel(model: string): Autobot;
TransformToAuto(): AutoModeCommand;
}
declare class AutoModeCommand implements AllModeCommand {
autobot: any;
constructor(bot: Autobot);
Speak(phrase: string): this;
Drive(): AutoModeCommand;
TransformToBot(): BotModeCommand;
}
declare class BotModeCommand implements AllModeCommand {
autobot: any;
constructor(bot: Autobot);
Shoot(): BotModeCommand;
Speak(phrase: string): this;
TransformToAuto(): AutoModeCommand;
}
declare var bot: Autobot;