mirror of
https://github.com/rxliuli/apps.apple.com.git
synced 2025-11-10 01:10:34 +00:00
init commit
This commit is contained in:
22
node_modules/@jet/environment/models/actions/compound-action.js
generated
vendored
Normal file
22
node_modules/@jet/environment/models/actions/compound-action.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.makeCompoundAction = exports.isCompoundAction = void 0;
|
||||
/**
|
||||
* Custom type guard to determine if an action is a CompoundAction.
|
||||
*/
|
||||
function isCompoundAction(action) {
|
||||
return (action === null || action === void 0 ? void 0 : action.$kind) === "compoundAction";
|
||||
}
|
||||
exports.isCompoundAction = isCompoundAction;
|
||||
/**
|
||||
* Helper that returns a CompoundAction, given an ActionMetrics and ActionModel[] of subactions.
|
||||
*/
|
||||
function makeCompoundAction(actionMetrics, subactions) {
|
||||
return {
|
||||
$kind: "compoundAction",
|
||||
subactions,
|
||||
actionMetrics,
|
||||
};
|
||||
}
|
||||
exports.makeCompoundAction = makeCompoundAction;
|
||||
//# sourceMappingURL=compound-action.js.map
|
||||
Reference in New Issue
Block a user