choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
10 lines (9 loc) • 414 B
TypeScript
/**
* Returns an object consisting of props beyond the scope of the Component.
* Useful for getting and spreading unknown props from the user.
* @param {function} Component A function or ReactClass.
* @param {object} props A ReactElement props object
* @returns {{}} A shallow copy of the prop object
*/
declare const getUnhandledProps: (Component: any, props: any) => any;
export default getUnhandledProps;