summaryrefslogtreecommitdiff
path: root/node_modules/@jet/environment/models/actions/empty-action.js
blob: da7f93abd8cf3fe7ce9ce1dfb2226a7d839fca44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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