Home Manual Reference Source

src/ActionInterface.js

/**
 * Interface each action.js has to implement
 * @interface
 */
export default class Action {

  /**
   * Returns the metadata of an action
   * @return {ActionsMetadata} returns action metadata
   */
  static getMetadata() {}
}



/**
 * @typedef {function(intenType: IntentType, options: Object): Promise<Object>|Object} ActionExecution
 * @desc The execute function of an Action
 * @param {StandardIntent|string} intentType - The type of the intent
 * @param {Object} intentOptions - The intent options
 * @return {Object} The return object of an action execution
 */