Skip to content

Instantly share code, notes, and snippets.

@virtualvoid
Last active May 18, 2016 11:39
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/fc4b7a6fa209210585b6c563ca59d0f5 to your computer and use it in GitHub Desktop.
Save virtualvoid/fc4b7a6fa209210585b6c563ca59d0f5 to your computer and use it in GitHub Desktop.
/// <reference path="jquery.d.ts" />
// ClockPicker v0.0.7 (http://weareoutman.github.io/clockpicker/)
// DefinitelyTyped by Juraj "VirtualVoid" Suchán
interface ClockPickerOptions {
default?: string;
fromnow?: number;
placement?: string;
align?: string;
donetext?: string;
autoclose?: boolean;
twelvehour?: boolean;
vibrate?: boolean;
beforeShow?: () => void;
afterShow?: () => void;
beforeHide?: () => void;
afterHide?: () => void;
beforeHourSelect?: () => void;
afterHourSelect?: () => void;
beforeDone?: () => void;
afterDone?: (obj: any) => void;
}
interface ClockPicker {
(options?: ClockPickerOptions): JQuery;
(methodName: string, ...params: any[]): JQuery;
}
interface JQuery {
clockpicker: ClockPicker;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment