UNPKG

@sudopub/essential

Version:
15 lines (14 loc) 422 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createPubAction = void 0; const generate_1 = require("../identifier/generate"); const createPubAction = (type, payload) => { const identifier = (0, generate_1.generatePubIdentifier)(); return { identifier, type, payload, timestamp: new Date(), }; }; exports.createPubAction = createPubAction;