UNPKG

routing-controllers

Version:

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.

18 lines 539 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Interceptor = void 0; const index_1 = require("../index"); /** * Registers a global interceptor. */ function Interceptor(options) { return function (target) { (0, index_1.getMetadataArgsStorage)().interceptors.push({ target: target, global: true, priority: options && options.priority ? options.priority : 0, }); }; } exports.Interceptor = Interceptor; //# sourceMappingURL=Interceptor.js.map