@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
18 lines • 734 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LazyLoadingManager = void 0;
const error_messages_1 = __importDefault(require("../../error-messages"));
const guard_1 = __importDefault(require("../../guard"));
class LazyLoadingManager {
static ensureLazyLoadingIsPossible(entity) {
guard_1.default.notNullOrUndefined(entity);
if (!entity.canDoLazyLoading) {
throw error_messages_1.default.Entity.CannotLazyLoad;
}
}
}
exports.LazyLoadingManager = LazyLoadingManager;
//# sourceMappingURL=lazy-loading-manager.js.map