forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriotcontrol.d.ts
26 lines (21 loc) · 785 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/DefinitelyTyped/DefinitelyTyped
declare namespace 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;
}