mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Added module declaration to ko.plus so it works with node, amd etc.
This commit is contained in:
9
types/ko.plus/index.d.ts
vendored
9
types/ko.plus/index.d.ts
vendored
@@ -21,6 +21,9 @@
|
||||
*
|
||||
* Version 1.2 - amended callback on commmand.fail() method - accepts response,
|
||||
* status and message values
|
||||
*
|
||||
* Version 1.3 - added module declaration so it be used with node, requirejs etc.
|
||||
*
|
||||
*/
|
||||
|
||||
//
|
||||
@@ -156,3 +159,9 @@ declare namespace KoPlus {
|
||||
|
||||
//#endregion
|
||||
}
|
||||
|
||||
declare var ko: KnockoutStatic;
|
||||
|
||||
declare module "ko.plus" {
|
||||
export = ko;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ function EditableTests() {
|
||||
// test editable
|
||||
var isEditing = edit1.isEditing();
|
||||
|
||||
// test editableArray functions:
|
||||
// test editable functions:
|
||||
edit1.beginEdit();
|
||||
edit1.endEdit();
|
||||
edit1.cancelEdit();
|
||||
@@ -88,7 +88,7 @@ function EditableArrayTests() {
|
||||
// test properties
|
||||
var isEditing = edit1.isEditing();
|
||||
|
||||
// test functions:
|
||||
// test editable array functions:
|
||||
edit1.beginEdit();
|
||||
edit1.endEdit();
|
||||
edit1.cancelEdit();
|
||||
@@ -118,4 +118,14 @@ function SortableTests() {
|
||||
sort2.sortDescending(true);
|
||||
sort2.setSourceKey("name");
|
||||
sort2.sortDescending(false);
|
||||
|
||||
}
|
||||
|
||||
function BindingHandlerTests() {
|
||||
|
||||
// test binding handlers
|
||||
var bh1 = ko.bindingHandlers.command;
|
||||
var bh2 = ko.bindingHandlers.loadingWhen;
|
||||
var bh3 = ko.bindingHandlers.sortBy;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user