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:
21
node_modules/@jet/environment/models/actions/empty-action.js
generated
vendored
Normal file
21
node_modules/@jet/environment/models/actions/empty-action.js
generated
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user