Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib-amd/extendComponent.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

17 lines
760 B
JavaScript

define(["require", "exports", "./appendFunction"], function (require, exports, appendFunction_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extendComponent = extendComponent;
/**
* Extends a component's lifetime methods by appending new functions to the existing lifetime functions.
*/
function extendComponent(parent, methods) {
for (var name_1 in methods) {
if (methods.hasOwnProperty(name_1)) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
parent[name_1] = (0, appendFunction_1.appendFunction)(parent, parent[name_1], methods[name_1]);
}
}
}
});
//# sourceMappingURL=extendComponent.js.map