mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
TypeScript 0.9.5 beta does not allow generic type references without the type argument. This code will still compile for 0.9.1 users. Flight and Ember have further compile problems in 0.9.5 that I don't feel qualified to address as I'm not versed in those libraries.
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: https://github.com/jmvrbanac
|
|
// DefinitelyTyped: 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;
|