UNPKG

433 BTypeScriptView Raw
1import * as PropTypes from 'prop-types';
2import * as React from 'react';
3export interface RefProps {
4 children: React.ReactElement<any>;
5 /**
6 * Called when a child component will be mounted or updated.
7 *
8 * @param {HTMLElement} node - Referred node.
9 */
10 innerRef: React.Ref<any>;
11}
12/** A checker that matches the React.Ref type. */
13export declare const refPropType: PropTypes.Requireable<React.Ref<any>>;