Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/// <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