diff --git a/rangeslider.d.ts b/rangeslider.d.ts new file mode 100644 index 0000000..417d80b --- /dev/null +++ b/rangeslider.d.ts @@ -0,0 +1,21 @@ +declare namespace Rangeslider { + export interface Options { + polyfill?: boolean; + rangeClass?: string; + disabledClass?: string; + horizontalClass?: string; + verticalClass?: string; + fillClass?: string; + handleClass?: string; + onInit?: () => void; + onSlide?: (position: number, value: number) => void; + onSlideEnd?: (position: number, value: number) => void; + } +} + +interface JQuery { + rangeslider(): JQuery; + rangeslider(action: "destroy"): JQuery; + rangeslider(action: "update", updateAttributes?: boolean): JQuery; + rangeslider(options: Rangeslider.Options): JQuery; +}