mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Fixed unit tests
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// Type definitions for jQuery jqgrid Plugin 1.3
|
||||
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="jquery.jqgrid.d.ts" />
|
||||
Vendored
+7
-6
@@ -1,4 +1,5 @@
|
||||
// Type definitions for jQuery jqgrid Plugin 1.3
|
||||
// Project: https://github.com/tonytomov/jqGrid
|
||||
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
@@ -10,14 +11,14 @@ interface JQueryJqGridColumn {
|
||||
sortable?: boolean;
|
||||
search?: boolean;
|
||||
width?: number;
|
||||
formatter?: (cellvalue, options, rowObject) => any;
|
||||
formatter?: (cellvalue: any, options: any, rowObject: any) => any;
|
||||
}
|
||||
|
||||
interface IJqGridJsonReader {
|
||||
repeatitems: boolean;
|
||||
root(obj): any;
|
||||
page(obj): any;
|
||||
total(obj): number;
|
||||
root(obj: any): any;
|
||||
page(obj: any): any;
|
||||
total(obj: any): number;
|
||||
records(obj: {data: any[]}): number;
|
||||
}
|
||||
|
||||
@@ -48,7 +49,7 @@ interface JQueryJqGridStatic {
|
||||
(gridName: string): any;
|
||||
(gridName: string, propName: string): any;
|
||||
(gridName: string, obj: any): any;
|
||||
(gridName: string, id, colname): any;
|
||||
(gridName: string, id: any, colname: any): any;
|
||||
(options: JQueryJqGridOptions): JQuery;
|
||||
}
|
||||
|
||||
@@ -59,5 +60,5 @@ interface JQueryStatic {
|
||||
interface JQuery {
|
||||
jqGrid?: JQueryJqGridStatic;
|
||||
|
||||
setGridParam(obj: any);
|
||||
setGridParam(obj: any): void;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
--noImplicitAny --module commonjs --target es5
|
||||
+8
-7
@@ -1,4 +1,5 @@
|
||||
// Type definitions for Masked Input plugin for jQuery
|
||||
// Project: http://digitalbush.com/projects/masked-input-plugin
|
||||
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
@@ -17,17 +18,17 @@ interface JQueryMaskedInputOptions {
|
||||
showMaskOnFocus?: boolean;
|
||||
showMaskOnHover?: boolean;
|
||||
showToolTip?: boolean;
|
||||
isComplete?: (buffer, options) => {};
|
||||
isComplete?: (buffer: any, options: any) => {};
|
||||
numeric?: boolean;
|
||||
radixPoint?: string;
|
||||
rightAlignNumerics?: boolean;
|
||||
oncomplete?: (value?: any) => void;
|
||||
onincomplete?: () => void;
|
||||
oncleared?: () => void;
|
||||
onUnMask?: (maskedValue, unmaskedValue) => void;
|
||||
onBeforeMask?: (initialValue) => void;
|
||||
onKeyValidation?: (result) => void;
|
||||
onBeforePaste?: (pastedValue) => void;
|
||||
onUnMask?: (maskedValue: any, unmaskedValue: any) => void;
|
||||
onBeforeMask?: (initialValue: any) => void;
|
||||
onKeyValidation?: (result: any) => void;
|
||||
onBeforePaste?: (pastedValue: any) => void;
|
||||
}
|
||||
|
||||
interface MaskedInputStatic {
|
||||
@@ -41,8 +42,8 @@ interface MaskedInputStaticDefaults {
|
||||
}
|
||||
|
||||
interface MaskedInputDefaults {
|
||||
aliases;
|
||||
definitions;
|
||||
aliases: any;
|
||||
definitions: any;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
--noImplicitAny --module commonjs --target es5
|
||||
Reference in New Issue
Block a user