UNPKG

arvo-core

Version:

The core Arvo package which provides application tier core primitives and contract system for building production-grade event-driven application. Provides ArvoEvent (CloudEvents-compliant), ArvoContract for type-safe service interfaces, event factories, O

14 lines (13 loc) 411 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformEmitsToArray = void 0; var transformEmitsToArray = function (emitMap) { return Object.entries(emitMap).map(function (_a) { var type = _a[0], schema = _a[1]; return ({ type: type, schema: schema, }); }); }; exports.transformEmitsToArray = transformEmitsToArray;