UNPKG

@rws-air/utils

Version:
17 lines 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createEvent = void 0; const MergeObjects_1 = require("../MergeObjects"); /** * Creates a dummy event * @param value Value to put on the target, used for click/change events * @param additionalData Any additional data to put into the event * @remark `additionalData` is merged using `mergeObject` so deep merging is possible */ const createEvent = (value, additionalData = {}) => (0, MergeObjects_1.mergeObjects)({ target: { value } }, additionalData !== null && additionalData !== void 0 ? additionalData : {}); exports.createEvent = createEvent; //# sourceMappingURL=CreateEvent.js.map