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>

18 lines 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.param = param; const tslib_1 = require("tslib"); const P = tslib_1.__importStar(require("parsimmon")); const param_value_1 = require("./param-value"); /** * * @param key * @param newKeyName */ function param(key, newKeyName) { return P.string(key) .then(P.string('=')) .then((0, param_value_1.paramValue)()) .map((value) => ({ [newKeyName ?? key]: value })); } //# sourceMappingURL=param.js.map