diff --git a/types/ko.plus/index.d.ts b/types/ko.plus/index.d.ts index 803a56fb74..9aa83e3f88 100644 --- a/types/ko.plus/index.d.ts +++ b/types/ko.plus/index.d.ts @@ -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; +} \ No newline at end of file diff --git a/types/ko.plus/ko.plus-tests.ts b/types/ko.plus/ko.plus-tests.ts index d3472c0d82..f6dd713e8c 100644 --- a/types/ko.plus/ko.plus-tests.ts +++ b/types/ko.plus/ko.plus-tests.ts @@ -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; + } \ No newline at end of file