mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
// Type definitions for Humane 3.0
|
|
// Project: http://wavded.github.com/humane-js/
|
|
// Definitions by: jmvrbanac <https://github.com/jmvrbanac>
|
|
// Definitions: https://github.com/DefinitelyTyped/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(x: 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;
|