Skip to content

Commit 3bafef8

Browse files
committed
Add type info for some jQuery plugins
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent ef385e2 commit 3bafef8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

js/global.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,23 @@ declare var mysqlDocTemplate: string;
88
declare var maxInputVars: number;
99

1010
declare function sprintf(format: string, ...values: (string|number)[]): string;
11+
12+
interface JQuery {
13+
getPostData: () => string;
14+
15+
sortableTable: (method: any) => any;
16+
17+
noSelect: (p: any) => any;
18+
19+
menuResizer: (method: string|Function) => any;
20+
21+
confirm: (question: string, url: string, callbackFn: Function, openCallback?: Function) => boolean;
22+
23+
sortTable: (textSelector: string) => JQuery<HTMLElement>;
24+
25+
filterByValue: (value: any) => any;
26+
}
27+
28+
interface JQueryStatic {
29+
timepicker: JQueryUI.Datepicker;
30+
}

0 commit comments

Comments
 (0)