UNPKG

ngx-decorate

Version:

Useful decorators for Angular 2 and above

13 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ensureSymbol_1 = require("./ensureSymbol"); const HookManager_1 = require("./HookManager"); /** @internal */ function mkPropertyKeyDecorator(symbolKey, hook, lc) { return (target, prop) => { ensureSymbol_1.ensureSymbol(target, symbolKey, []).push(prop); HookManager_1.HookManager.for(target).add(lc, hook); }; } exports.mkPropertyKeyDecorator = mkPropertyKeyDecorator; //# sourceMappingURL=mkPropertyKeyDecorator.js.map