Update reference paths

This commit is contained in:
Boris Yankov
2013-01-17 20:03:30 +02:00
parent a427049e18
commit 209d95071a
90 changed files with 928 additions and 925 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/// <reference path="toastr-1.2.d.ts" />
/// <reference path="toastr.d.ts" />
function test_basic() {
var t = [];
+48 -46
View File
@@ -1,47 +1,49 @@
/// <reference path="jquery.d.ts" />
// Type definitions for Toastr 1.0
// Project: https://github.com/CodeSeven/toastr
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface ToastrOptions {
tapToDismiss?: bool;
toastClass?: string;
containerId?: string;
debug?: bool;
fadeIn?: number;
fadeOut?: number;
extendedTimeOut?: number;
iconClasses?: {
error: string;
info: string;
success: string;
warning: string;
};
iconClass?: string;
positionClass?: string;
timeOut?: number;
titleClass?: string;
messageClass?: string;
onclick?: () => void;
}
interface ToastrDisplayMethod {
(message: string): JQuery;
(message: string, title: string): JQuery;
(message: string, title: string, overrides: ToastrOptions): JQuery;
}
interface Toastr {
clear(): void;
clear(toast: JQuery): void;
error: ToastrDisplayMethod;
info: ToastrDisplayMethod;
options: ToastrOptions;
success: ToastrDisplayMethod;
warning: ToastrDisplayMethod;
version: string;
}
// Type definitions for Toastr 1.0
// Project: https://github.com/CodeSeven/toastr
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface ToastrOptions {
tapToDismiss?: bool;
toastClass?: string;
containerId?: string;
debug?: bool;
fadeIn?: number;
fadeOut?: number;
extendedTimeOut?: number;
iconClasses?: {
error: string;
info: string;
success: string;
warning: string;
};
iconClass?: string;
positionClass?: string;
timeOut?: number;
titleClass?: string;
messageClass?: string;
onclick?: () => void;
}
interface ToastrDisplayMethod {
(message: string): JQuery;
(message: string, title: string): JQuery;
(message: string, title: string, overrides: ToastrOptions): JQuery;
}
interface Toastr {
clear(): void;
clear(toast: JQuery): void;
error: ToastrDisplayMethod;
info: ToastrDisplayMethod;
options: ToastrOptions;
success: ToastrDisplayMethod;
warning: ToastrDisplayMethod;
version: string;
}
declare var toastr: Toastr;