mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
784 B
TypeScript
26 lines
784 B
TypeScript
// Type definitions for RiotControl
|
|
// Project: https://github.com/jimsparkman/RiotControl
|
|
// Definitions by: Ilya Mochalov <https://github.com/chrootsu>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = RiotControl;
|
|
export as namespace RiotControl;
|
|
|
|
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;
|
|
}
|