typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
48 lines (43 loc) • 1.63 kB
TypeScript
// Type definitions for twitter-bootstrap-wizard
// Project: https://github.com/VinceG/twitter-bootstrap-wizard
// Definitions by: Blake Niemyjski <https://github.com/niemyjski>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface WizardOptions {
tabClass?: string;
nextSelector?: string;
previousSelector?: string;
firstSelector?: string;
lastSelector?: string;
onShow?: (activeTab: any, navigation: any, nextIndex: number) => void;
onInit?: (activeTab: any, navigation: any, currentIndex: number) => void;
onNext?: (activeTab: any, navigation: any, nextIndex: number) => boolean;
onPrevious?: (activeTab: any, navigation: any, previousIndex: number) => boolean;
onLast?: (activeTab: any, navigation: any, lastIndex: number) => boolean;
onFirst?: (activeTab: any, navigation: any, firstIndex: number) => boolean;
onTabClick?: (activeTab: any, navigation: any, currentIndex: number) => boolean;
onTabShow?: (activeTab: any, navigation: any, currentIndex: number) => boolean;
}
interface Wizard {
next(): void;
previous(): void;
first(): void;
last(): void;
currentIndex(): number;
firstIndex(): number;
lastIndex(): number;
getIndex(element: any): number;
nextIndex(): number;
previousIndex(): number;
navigationLength(): number;
activeTab(): any;
nextTab(): any;
previousTab(): any;
show(index: number): any;
}
interface JQuery {
bootstrapWizard(options?: WizardOptions): Wizard;
}
interface JQueryStatic {
bootstrapWizard: Wizard;
}