UNPKG

275 BTypeScriptView Raw
1import * as React from 'react';
2/**
3 * Extends a component's lifetime methods by appending new functions to the existing lifetime functions.
4 */
5export declare function extendComponent<T extends React.Component>(parent: T, methods: {
6 [key in keyof T]?: T[key];
7}): void;