"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyParentEventHandlers = applyParentEventHandlers;
function __assignType(fn, args) {
    fn.__type = args;
    return fn;
}
/*@ts-ignore*/
var { __ΩClassType } = require('@deepkit/core');
const event_1 = require("@deepkit/event");
function applyParentEventHandlers(target) {
    const parent = Object.getPrototypeOf(target);
    const config = event_1.eventClass._fetch(parent);
    config?.listeners.forEach(__assignType(listener => {
        event_1.eventDispatcher.listen(listener.eventToken, listener.order)(target.prototype, listener.methodName);
    }, ['listener', '', 'P"2!"/"']));
    return target;
}
applyParentEventHandlers.__type = [() => __ΩClassType, 'target', 'applyParentEventHandlers', 'Pn!2""/#'];
//# sourceMappingURL=event.js.map