summaryrefslogtreecommitdiff
path: root/node_modules/@jet/environment/models/actions/empty-action.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@jet/environment/models/actions/empty-action.js')
-rw-r--r--node_modules/@jet/environment/models/actions/empty-action.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/@jet/environment/models/actions/empty-action.js b/node_modules/@jet/environment/models/actions/empty-action.js
new file mode 100644
index 0000000..da7f93a
--- /dev/null
+++ b/node_modules/@jet/environment/models/actions/empty-action.js
@@ -0,0 +1,21 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.makeEmptyAction = exports.isEmptyAction = void 0;
+/**
+ * Custom type guard to determine if an action is an EmptyAction.
+ */
+function isEmptyAction(action) {
+ return (action === null || action === void 0 ? void 0 : action.$kind) === "emptyAction";
+}
+exports.isEmptyAction = isEmptyAction;
+/**
+ * Helper that returns an EmptyAction, given an ActionMetrics.
+ */
+function makeEmptyAction(actionMetrics) {
+ return {
+ $kind: "emptyAction",
+ actionMetrics,
+ };
+}
+exports.makeEmptyAction = makeEmptyAction;
+//# sourceMappingURL=empty-action.js.map \ No newline at end of file