mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #7029 from chrismbarr/patch-9
Intro.js - Fixing types
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
var intro = introJs();
|
||||
|
||||
intro.setOption('doneLabel', 'Next page');
|
||||
intro.setOption('overlayOpacity', 50);
|
||||
intro.setOption('showProgress', true);
|
||||
intro.setOptions({
|
||||
steps: [
|
||||
{
|
||||
|
||||
Vendored
+4
-11
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user