/ node_modules / @jet / environment / models / actions / empty-action.js
empty-action.js
 1  "use strict";
 2  Object.defineProperty(exports, "__esModule", { value: true });
 3  exports.makeEmptyAction = exports.isEmptyAction = void 0;
 4  /**
 5   * Custom type guard to determine if an action is an EmptyAction.
 6   */
 7  function isEmptyAction(action) {
 8      return (action === null || action === void 0 ? void 0 : action.$kind) === "emptyAction";
 9  }
10  exports.isEmptyAction = isEmptyAction;
11  /**
12   * Helper that returns an EmptyAction, given an ActionMetrics.
13   */
14  function makeEmptyAction(actionMetrics) {
15      return {
16          $kind: "emptyAction",
17          actionMetrics,
18      };
19  }
20  exports.makeEmptyAction = makeEmptyAction;
21  //# sourceMappingURL=empty-action.js.map