mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Fixing Types
This commit is contained in:
1 parent
ac1ab09075
commit
c569355ceb
1 file changed
+4
-11
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