mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Updates/fixes to Humane.js
This commit is contained in:
Vendored
+33
-16
@@ -1,21 +1,38 @@
|
||||
// Type definitions for Humane 3.0
|
||||
// Project: http://wavded.github.com/humane-js/
|
||||
// Definitions by: https://github.com/jmvrbanac
|
||||
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface HumaneOptions {
|
||||
timeout:number;
|
||||
clickToClose:Boolean;
|
||||
baseCls:String;
|
||||
addnCls:String;
|
||||
queue?: string[];
|
||||
baseCls?: string;
|
||||
addnCls?: string;
|
||||
timeout?: number;
|
||||
waitForMove?: bool;
|
||||
clickToClose?: bool;
|
||||
forceNew?: bool;
|
||||
}
|
||||
|
||||
interface Humane {
|
||||
create(options?:HumaneOptions):Humane;
|
||||
info:Function;
|
||||
error:Function;
|
||||
spawn(options:HumaneOptions):Function;
|
||||
remove();
|
||||
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:Array):Humane;
|
||||
queue: string[];
|
||||
baseCls: string;
|
||||
addnCls: string;
|
||||
timeout: number;
|
||||
waitForMove: bool;
|
||||
clickToClose: bool;
|
||||
forceNew: bool;
|
||||
|
||||
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: Array): Humane;
|
||||
}
|
||||
declare var humane:Humane;
|
||||
|
||||
declare var humane: Humane;
|
||||
|
||||
Reference in New Issue
Block a user