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>

16 lines 492 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEntryRelativePath = getEntryRelativePath; /** * * @param pagePaths * @param entryPath */ function getEntryRelativePath(pagePaths, entryPath) { const pagePath = pagePaths.find((pagePath) => pagePath === entryPath); if (!pagePath) { throw new Error(`Entry path "${entryPath}" is not found in page paths`); } return pagePath; } //# sourceMappingURL=get-entry-relative-path.js.map