UNPKG

chrono-forge

Version:

A comprehensive framework for building resilient Temporal workflows, advanced state management, and real-time streaming activities in TypeScript. Designed for a seamless developer experience with powerful abstractions, dynamic orchestration, and full cont

16 lines (15 loc) 524 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Action = Action; require("reflect-metadata"); const metadata_1 = require("./metadata"); function Action(options) { return (target, propertyKey) => { const actions = Reflect.getMetadata(metadata_1.ACTIONS_METADATA_KEY, target) || []; actions.push({ method: propertyKey, options: options || {} }); Reflect.defineMetadata(metadata_1.ACTIONS_METADATA_KEY, actions, target); }; }