diff --git a/Definitions/impress-0.5.d.ts b/Definitions/impress-0.5.d.ts new file mode 100644 index 0000000000..f809144255 --- /dev/null +++ b/Definitions/impress-0.5.d.ts @@ -0,0 +1,13 @@ +// Type definitions for Impress.js 0.5 +// Project: https://github.com/bartaz/impress.js +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +interface Impress { + init(): void; + getStep(step: any): any; + goto(element: any, duration?: number): any; + prev(): any; + next(): any; +} + +declare function impress(): Impress; \ No newline at end of file diff --git a/README.md b/README.md index e4dcd04655..47127c5da7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Complete * [Fancybox](http://fancybox.net/) * [History.js](https://github.com/balupton/History.js/) * [Humane.js](http://wavded.github.com/humane-js/) (by [jmvrbanac](https://github.com/jmvrbanac)) +* [Impress.js](https://github.com/bartaz/impress.js) * [Jasmine](http://pivotal.github.com/jasmine/) * [jQuery.Globalize](https://github.com/jquery/globalize) * [jQuery](http://jquery.com/) (from TypeScript samples) diff --git a/Tests/impress-tests.ts b/Tests/impress-tests.ts new file mode 100644 index 0000000000..34c51d864f --- /dev/null +++ b/Tests/impress-tests.ts @@ -0,0 +1,10 @@ +/// + +impress().init(); + +var api = impress(); + +api.next() +api.prev(); +api.goto(document.getElementById('#id')); +api.goto(1, 123); \ No newline at end of file