UNPKG

@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>

22 lines 638 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cachedPropsInitializer = cachedPropsInitializer; /** * * @param cls * @param propName * @param accessor */ function cachedPropsInitializer(cls, propName, accessor) { const castedThis = cls; if (!castedThis.__cachedProps) { Object.defineProperty(castedThis, '__cachedProps', { value: new Map(), }); } castedThis.__cachedProps?.set(propName, { get: accessor?.get ?? ((value) => value), set: accessor?.set ?? ((value) => value), }); } //# sourceMappingURL=cached-props-initializer.js.map