forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
humane.d.ts
39 lines (33 loc) · 1.05 KB
/
humane.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
27
28
29
30
31
32
33
34
35
36
37
38
39
// Type definitions for Humane 3.0
// Project: http://wavded.github.com/humane-js/
// Definitions by: jmvrbanac <https://github.com/jmvrbanac>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface HumaneOptions {
queue?: string[];
baseCls?: string;
addnCls?: string;
timeout?: number;
waitForMove?: boolean;
clickToClose?: boolean;
forceNew?: boolean;
}
interface Humane {
queue: string[];
baseCls: string;
addnCls: string;
timeout: number;
waitForMove: boolean;
clickToClose: boolean;
forceNew: boolean;
create(options?: HumaneOptions): Humane;
info: Function;
error: Function;
spawn(options: HumaneOptions): Function;
remove(any): void;
log(message: string): Humane;
log(message: string, callback: Function): Humane;
log(message: string, options: HumaneOptions): Humane;
log(message: string, callback: Function, options: HumaneOptions): Humane;
log(listOfMessages: any[]): Humane;
}
declare var humane: Humane;