forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriotcontrol.d.ts
26 lines (21 loc) · 778 Bytes
/
riotcontrol.d.ts
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
// Type definitions for RiotControl
// Project: https://github.com/jimsparkman/RiotControl
// Definitions by: Ilya Mochalov <https://github.com/chrootsu>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module RiotControl {
interface Store {
on(events: string, fn: Function): Store;
one(name: string, fn: Function): Store;
off(events: string, fn?: Function): Store;
trigger(name: string, ...args: any[]): Store;
}
var _stores: Store[];
function addStore(store: Store): void;
function on(events: string, fn: Function): void;
function one(name: string, fn: Function): void;
function off(events: string, fn?: Function): void;
function trigger(name: string, ...args: any[]): void;
}
declare module "riotcontrol" {
export = RiotControl;
}