Add type definition for typescript project

This commit is contained in:
Starfall Production 2019-05-31 17:43:53 +07:00
parent c3f949a404
commit 274f4a88ee
1 changed files with 28 additions and 0 deletions

28
selectableScroll.d.ts vendored Normal file
View File

@ -0,0 +1,28 @@
/// <reference types="jquery" />
/// <reference types="jqueryui" />
declare namespace JQueryUI{
interface SelectableScrollOptions extends SelectableOptions {
scrollElement?: JQuery<HTMLElement> | null;
scrollSnapX?: number;
scrollSnapY?: number;
scrollAmount?: number;
scrollIntervalTime?: number;
}
interface SelectableScroll extends Selectable{
}
}
interface JQuery{
selectableScroll(): JQuery;
selectableScroll(methodName: 'destroy'): void;
selectableScroll(methodName: 'disable'): void;
selectableScroll(methodName: 'enable'): void;
selectableScroll(methodName: 'widget'): JQuery;
selectableScroll(methodName: string): JQuery;
selectableScroll(options: JQueryUI.SelectableScrollOptions): JQuery;
selectableScroll(optionLiteral: string, optionName: string): any;
selectableScroll(optionLiteral: string, options: JQueryUI.SelectableScrollOptions): any;
selectableScroll(optionLiteral: string, optionName: string, optionValue: any): JQuery;
}