Merge pull request #7029 from chrismbarr/patch-9

Intro.js - Fixing types
This commit is contained in:
Masahiro Wakame
2015-12-07 23:49:04 +09:00
2 changed files with 6 additions and 11 deletions
+2
View File
@@ -3,6 +3,8 @@
var intro = introJs();
intro.setOption('doneLabel', 'Next page');
intro.setOption('overlayOpacity', 50);
intro.setOption('showProgress', true);
intro.setOptions({
steps: [
{
+4 -11
View File
@@ -1,20 +1,13 @@
// Type definitions for intro.js 1.0.0
// Type definitions for intro.js 1.1.1
// Project: https://github.com/usablica/intro.js
// Definitions by: Maxime Fabre <https://github.com/anahkiasen/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module IntroJs {
enum Positions {
top,
left,
right,
bottom
}
interface Step {
intro: string;
element?: string|HTMLElement;
position?: string|Positions;
element?: string|HTMLElement|Element;
position?: string;
}
interface Options {
@@ -49,7 +42,7 @@ declare module IntroJs {
refresh(): IntroJs;
setOption(option: string, value: string|number): IntroJs;
setOption(option: string, value: string|number|boolean): IntroJs;
setOptions(options: Options): IntroJs;
onexit(callback: Function): IntroJs;