@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
19 lines • 722 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.CachedFilesGetter = CachedFilesGetter;
const cached_files_initializer_1 = require("../cached-files-initializer");
/**
* Decorator for paths that should be cached, it can be applied to a string or an array of strings property to
* cache the path or paths for the current class
*/
function CachedFilesGetter() {
return (target, context) => {
context.addInitializer(function () {
(0, cached_files_initializer_1.cachedFilesInitializer)(this, context.name.toString());
});
return function () {
return target.call(this);
};
};
}
//# sourceMappingURL=cached-files-getter.js.map
;