mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Impress.js definitions and tests added
This commit is contained in:
parent
8938dffa1e
commit
bae2e02233
13
Definitions/impress-0.5.d.ts
vendored
Normal file
13
Definitions/impress-0.5.d.ts
vendored
Normal file
@ -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;
|
||||
@ -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)
|
||||
|
||||
10
Tests/impress-tests.ts
Normal file
10
Tests/impress-tests.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/// <reference path="../Definitions/impress-0.5.d.ts" />
|
||||
|
||||
impress().init();
|
||||
|
||||
var api = impress();
|
||||
|
||||
api.next()
|
||||
api.prev();
|
||||
api.goto(document.getElementById('#id'));
|
||||
api.goto(1, 123);
|
||||
Loading…
Reference in New Issue
Block a user