1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | const partial_1 = __importDefault(require("lodash/partial"));
|
7 | function withProps(action, props) {
|
8 | Object.freeze(props);
|
9 | const actionWithProps = partial_1.default(action, partial_1.default.placeholder, props);
|
10 | Object.defineProperty(actionWithProps, 'name', {
|
11 | value: action.name || 'Anonymous',
|
12 | });
|
13 | return actionWithProps;
|
14 | }
|
15 | exports.default = withProps;
|
16 |
|
\ | No newline at end of file |