You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
555 B

/**
* Action
*
* @author Björn Hase <me@herr-hase.wtf>
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://git.node001.net/HerrHase/signpost.git
*
*/
class Action {
/**
*
* @param flow object
* @param data object
*
*/
constructor(flow, data) {
this.flow = flow
this.data = data
// check if class has a run method
if (typeof this.run !== 'function') {
throw new Error('missing run method')
}
}
}
export default Action