Skip to content

Instantly share code, notes, and snippets.

@virtualvoid
Last active February 18, 2016 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualvoid/9153b5b6b6347db3b579 to your computer and use it in GitHub Desktop.
Save virtualvoid/9153b5b6b6347db3b579 to your computer and use it in GitHub Desktop.
jquery.steps TypeScript Definition File
/// <reference path="../jquery/jquery.d.ts" />
interface JQueryStepsLabelsOptions {
next?: string;
previous?: string;
finish?: string;
cancel?: string;
}
interface JQueryStepsOptions {
headerTag?: string;
bodyTag?: string;
transitionEffect?: string;
autoFocus?: boolean;
labels?: JQueryStepsLabelsOptions;
onInit?: (event: any, currentIndex: number) => void;
onStepChanging?: (event: any, currentIndex: number, newIndex: number) => void;
onStepChanged?: (event: any, currentIndex: number, priorIndex: number) => boolean;
onCanceled?: (event: any) => void;
onFinishing?: (event: any, currentIndex: number) => boolean;
onFinished?: (event: any, currentIndex: number) => void;
}
interface JQuerySteps {
(options: JQueryStepsOptions): JQuery;
(methodName: string, ...params: any[]): JQuery;
}
interface JQuery {
steps: JQuerySteps;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment