diff --git a/knockout.punches/knockout.punches-tests.ts b/knockout.punches/knockout.punches-tests.ts new file mode 100644 index 000000000..bd5d53a5c --- /dev/null +++ b/knockout.punches/knockout.punches-tests.ts @@ -0,0 +1,8 @@ +/// + + +function test_enable() { + + ko.punches.enableAll(); + +} \ No newline at end of file diff --git a/knockout.punches/knockout.punches.d.ts b/knockout.punches/knockout.punches.d.ts new file mode 100644 index 000000000..d219d61f1 --- /dev/null +++ b/knockout.punches/knockout.punches.d.ts @@ -0,0 +1,20 @@ +// Type definitions for knockout.punches 0.5.1 +// Project: https://github.com/mbest/knockout.punches +// Definitions by: Stephen Lautier +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +interface KnockoutPunchesStatic { + enableAll(): void; +} + +interface KnockoutStatic { + punches: KnockoutPunchesStatic; +} + +declare module "knockout.punches" { + export = punches; +} + +declare var punches: KnockoutPunchesStatic; \ No newline at end of file