mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixing Types
This commit is contained in:
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