UNPKG

routing-controllers

Version:

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

14 lines 405 B
import { getMetadataArgsStorage } from '../index'; /** * Registers a global interceptor. */ export function Interceptor(options) { return function (target) { getMetadataArgsStorage().interceptors.push({ target: target, global: true, priority: options && options.priority ? options.priority : 0, }); }; } //# sourceMappingURL=Interceptor.js.map