提交 6dc270de 编写于 作者: R raphael22 提交者: Kamran Ahmed

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
上级 e24864c3
此差异已折叠。
......@@ -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
......
......@@ -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
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册