"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../index");
/**
 * Injects a Koa's Context object to the controller action parameter.
 * Must be applied on a controller action parameter.
 */
function Ctx() {
    return function (object, methodName, index) {
        index_1.getMetadataArgsStorage().params.push({
            type: "context",
            object: object,
            method: methodName,
            index: index,
            parse: false,
            required: false
        });
    };
}
exports.Ctx = Ctx;
//# sourceMappingURL=Ctx.js.map