UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

11 lines (10 loc) 477 B
import PropTypes from 'prop-types'; /** * Returns an object consisting of props beyond the scope of the Component. * Useful for getting and spreading unknown props from the user. * @param {object} propTypes * @param {object} props A ReactElement props object * @returns {{}} A shallow copy of the prop object */ declare const getUnhandledProps: (propTypes: Record<string, PropTypes.Requireable<any>>, props: Record<string, any>) => any; export default getUnhandledProps;