common-core-pkg
Version:
Common package for all the utils
11 lines • 398 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locals = void 0;
const common_1 = require("@nestjs/common");
exports.Locals = (0, common_1.createParamDecorator)((key, ctx) => {
const response = ctx.switchToHttp().getResponse();
if (!key)
return response.locals;
return response.locals?.[key];
});
//# sourceMappingURL=locals.decorator.js.map