@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>
23 lines • 861 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInterfaceCallSignatures = getInterfaceCallSignatures;
const core_1 = require("@ng-doc/core");
const interface_1 = require("../interface");
const get_call_signature_name_1 = require("./get-call-signature-name");
/**
*
* @param int
*/
function getInterfaceCallSignatures(int) {
const callSignatures = new Map();
(0, interface_1.forAllInterfaces)(int, (i) => {
i.getCallSignatures().forEach((callSignature) => {
const name = (0, get_call_signature_name_1.getCallSignatureName)(callSignature);
if (!callSignatures.get(name)) {
callSignatures.set(name, callSignature);
}
});
});
return (0, core_1.asArray)(callSignatures.values());
}
//# sourceMappingURL=get-interface-call-signatures.js.map
;