UNPKG

@dolittle/sdk.events.handling

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

27 lines 1.8 kB
"use strict"; // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. Object.defineProperty(exports, "__esModule", { value: true }); exports.HandlesDecoratedMethod = void 0; /** * Represents methods decorated with the handles decorator. */ class HandlesDecoratedMethod { /** * Initializes a new instance of {@link HandlesDecoratedMethod}. * @param {Constructor<any>} owner - Owner of the method. * @param {Constructor<any> | EventTypeIdLike } eventTypeOrId - Type or event type id of event it handles. * @param {GenerationLike | undefined} generation - Generation of the event or undefined. * @param {EventHandlerSignature} method - The actual method that handles the event. * @param {string} name - The name of the method. */ constructor(owner, eventTypeOrId, generation, method, name) { this.owner = owner; this.eventTypeOrId = eventTypeOrId; this.generation = generation; this.method = method; this.name = name; } } exports.HandlesDecoratedMethod = HandlesDecoratedMethod; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGFuZGxlc0RlY29yYXRlZE1ldGhvZC5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIkJ1aWxkZXJzL0hhbmRsZXNEZWNvcmF0ZWRNZXRob2QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQVNyRzs7R0FFRztBQUNILE1BQWEsc0JBQXNCO0lBRS9COzs7Ozs7O09BT0c7SUFDSCxZQUNhLEtBQXVCLEVBQ3ZCLGFBQWlELEVBQ2pELFVBQXNDLEVBQ3RDLE1BQTZCLEVBQzdCLElBQVk7UUFKWixVQUFLLEdBQUwsS0FBSyxDQUFrQjtRQUN2QixrQkFBYSxHQUFiLGFBQWEsQ0FBb0M7UUFDakQsZUFBVSxHQUFWLFVBQVUsQ0FBNEI7UUFDdEMsV0FBTSxHQUFOLE1BQU0sQ0FBdUI7UUFDN0IsU0FBSSxHQUFKLElBQUksQ0FBUTtJQUN6QixDQUFDO0NBQ0o7QUFqQkQsd0RBaUJDIn0=