UNPKG

@uifabric/utilities

Version:

Fluent UI React utilities for building components.

16 lines 648 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var appendFunction_1 = require("./appendFunction"); /** * 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] = appendFunction_1.appendFunction(parent, parent[name_1], methods[name_1]); } } } exports.extendComponent = extendComponent; //# sourceMappingURL=extendComponent.js.map