Quick first pass at the definition of Humane.js

This commit is contained in:
John Vrbanac
2012-10-17 23:55:22 -05:00
parent c8b3b9a8d2
commit 0ab535906e
+21
View File
@@ -0,0 +1,21 @@
interface HumaneOptions {
timeout:number;
clickToClose:Boolean;
baseCls:String;
addnCls:String;
}
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;
}
declare var humane:Humane;