mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-11-03 14:32:52 +08:00
Add getter and setter for steps property
* (feat) - add getter for steps property * (feat) - add setter for steps property / remove duplicate typing * (fix) - remove duplicated 'currentModePrevented' type
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -65,6 +65,24 @@ export default class Driver {
|
||||
this.bind();
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for steps property
|
||||
* @readonly
|
||||
* @public
|
||||
*/
|
||||
getSteps() {
|
||||
return this.steps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for steps property
|
||||
* @param steps
|
||||
* @public
|
||||
*/
|
||||
setSteps(steps) {
|
||||
this.steps = steps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds any DOM events listeners
|
||||
* @todo: add throttling in all the listeners
|
||||
|
||||
Vendored
+10
@@ -41,6 +41,16 @@ declare module 'driver.js' {
|
||||
*/
|
||||
public constructor(options?: Driver.DriverOptions);
|
||||
|
||||
/**
|
||||
* Public getter for steps property
|
||||
*/
|
||||
public getSteps(): Array<Driver.Step>;
|
||||
|
||||
/**
|
||||
* Public setter for steps property
|
||||
*/
|
||||
public setSteps(): Array<Driver.Step>;
|
||||
|
||||
/**
|
||||
* Does the required bindings for DOM Events
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user